polars_arrow::legacy::kernels::take_agg

Function take_agg_primitive_iter_unchecked

Source
pub unsafe fn take_agg_primitive_iter_unchecked<T: NativeType, I: IntoIterator<Item = usize>, F: Fn(T, T) -> T>(
    arr: &PrimitiveArray<T>,
    indices: I,
    f: F,
) -> Option<T>
Expand description

Take kernel for single chunk and an iterator as index.

ยงSafety

caller must ensure iterators indexes are in bounds