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,
)
| 244 | |
| 245 | /// Returns an iterator that returns the values of `array.value(i)` for an iterator with each element `i` |
| 246 | pub fn take_iter<'a>( |
| 247 | &'a self, |
| 248 | indexes: impl Iterator<Item = Option<usize>> + 'a, |
| 249 | ) -> impl Iterator<Item = Option<bool>> + 'a { |
| 250 | indexes.map(|opt_index| opt_index.map(|index| self.value(index))) |
| 251 | } |
| 252 | |
| 253 | /// Returns an iterator that returns the values of `array.value(i)` for an iterator with each element `i` |
| 254 | /// # Safety |