TODO tests
(&self, f: F)
| 697 | |
| 698 | // TODO tests |
| 699 | pub fn find<F>(&self, f: F) -> Vec<(usize, usize)> |
| 700 | where F: Fn(&T) -> bool { |
| 701 | |
| 702 | self.values().enumerate() |
| 703 | .filter(|&(_idx, val)| f(val)) |
| 704 | .map(|(idx, _val)| (idx % self.cols(), idx / self.cols())) |
| 705 | .collect() |
| 706 | } |
| 707 | |
| 708 | /// Inserts a column before the specified column (indexing starts at zero). |
| 709 | /// |
no test coverage detected