sift
container sift(container, selection)
Returns a copy of the container containing only the indices/keys in selection.
Arguments
- container — array or dictionary to filter.
- selection — an array of either array indices (number) or dictionary keys (text).
Returns
- a copy of container only containing the selection.