polars_core/chunked_array/ops/
for_each.rs

1use crate::prelude::*;
2
3impl<T> ChunkedArray<T>
4where
5    T: PolarsDataType,
6{
7    pub fn for_each<'a, F>(&'a self, mut op: F)
8    where
9        F: FnMut(Option<T::Physical<'a>>),
10    {
11        self.downcast_iter().for_each(|arr| {
12            arr.iter().for_each(&mut op);
13        })
14    }
15}