| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154 |
- try:
- from cytoolz import (
- accumulate,
- assoc,
- assoc_in,
- comp,
- complement,
- compose,
- concat,
- concatv,
- cons,
- count,
- countby,
- curried,
- curry,
- dicttoolz,
- diff,
- dissoc,
- do,
- drop,
- excepts,
- filter,
- first,
- flip,
- frequencies,
- functoolz,
- get,
- get_in,
- groupby,
- identity,
- interleave,
- interpose,
- isdistinct,
- isiterable,
- itemfilter,
- itemmap,
- iterate,
- itertoolz,
- join,
- juxt,
- keyfilter,
- keymap,
- last,
- map,
- mapcat,
- memoize,
- merge,
- merge_sorted,
- merge_with,
- nth,
- partial,
- partition,
- partition_all,
- partitionby,
- peek,
- pipe,
- pluck,
- random_sample,
- recipes,
- reduce,
- reduceby,
- remove,
- second,
- sliding_window,
- sorted,
- tail,
- take,
- take_nth,
- thread_first,
- thread_last,
- topk,
- unique,
- update_in,
- utils,
- valfilter,
- valmap,
- )
- except ImportError:
- from toolz import ( # noqa: F401
- accumulate,
- assoc,
- assoc_in,
- comp,
- complement,
- compose,
- concat,
- concatv,
- cons,
- count,
- countby,
- curried,
- curry,
- dicttoolz,
- diff,
- dissoc,
- do,
- drop,
- excepts,
- filter,
- first,
- flip,
- frequencies,
- functoolz,
- get,
- get_in,
- groupby,
- identity,
- interleave,
- interpose,
- isdistinct,
- isiterable,
- itemfilter,
- itemmap,
- iterate,
- itertoolz,
- join,
- juxt,
- keyfilter,
- keymap,
- last,
- map,
- mapcat,
- memoize,
- merge,
- merge_sorted,
- merge_with,
- nth,
- partial,
- partition,
- partition_all,
- partitionby,
- peek,
- pipe,
- pluck,
- random_sample,
- recipes,
- reduce,
- reduceby,
- remove,
- second,
- sliding_window,
- sorted,
- tail,
- take,
- take_nth,
- thread_first,
- thread_last,
- topk,
- unique,
- update_in,
- utils,
- valfilter,
- valmap,
- )
|