Returns an iterator that returns the values of `array.value(i)` for an iterator with each element `i`
(
&'a self,
indexes: impl Iterator<Item = Option<usize>> + 'a,
)
| 34 | |
| 35 | /// Returns an iterator that returns the values of `array.value(i)` for an iterator with each element `i` |
| 36 | pub fn take_iter<'a>( |
| 37 | &'a self, |
| 38 | indexes: impl Iterator<Item = Option<usize>> + 'a, |
| 39 | ) -> impl Iterator<Item = Option<&'a str>> { |
| 40 | indexes.map(|opt_index| opt_index.map(|index| self.value(index))) |
| 41 | } |
| 42 | |
| 43 | /// Returns an iterator that returns the values of `array.value(i)` for an iterator with each element `i` |
| 44 | /// # Safety |