iterators
#
Replacements for parts of the toolz library.
Functions#
|
A toolz-style groupby implementation. |
|
A toolz inspired unique implementation. |
- groupby_to_dict(keyfunc, sequence)#
A toolz-style groupby implementation.
Returns a dictionary of { key: [group] } instead of iterators.
- unique(sequence: collections.abc.Sequence[Any]) collections.abc.Generator[Any, None, None] #
A toolz inspired unique implementation.
Returns a generator of unique elements in the sequence