pub fn take<O>(
values: &(dyn Array + 'static),
indices: &PrimitiveArray<O>
) -> Result<Box<dyn Array>, Error>where
O: Index,
Expand description
Returns a new Array
with only indices at indices
. Null indices are taken as nulls.
The returned array has a length equal to indices.len()
.