| 59 | }; |
| 60 | |
| 61 | void addCommonIteratorMethods(pybind11::class_<GenericIterator> &cl) { |
| 62 | cl |
| 63 | .def("_group_by", [](GenericIterator &range, SimpleProxy &grouper, SimpleProxy &eval) -> pybind11::dict { |
| 64 | return mpark::visit(GroupByVisitor{grouper, eval}, range.getGenericIterator().var); |
| 65 | }) |
| 66 | .def("to_list", [](GenericIterator &range) { |
| 67 | return mpark::visit(ToListVisitor{}, range.getGenericIterator().var); |
| 68 | }, "Returns a list of all of the objects in the range"); |
| 69 | } |
nothing calls this directly
no test coverage detected