Last active
October 19, 2016 23:28
-
-
Save DGrady/b385500519de0b073193c99aecb31848 to your computer and use it in GitHub Desktop.
Python, functional
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# from operator import ( | |
from cytoolz.curried.operator import ( | |
add, | |
and_, | |
attrgetter, | |
# concat, | |
contains, | |
countOf, | |
delitem, | |
eq, | |
floordiv, | |
ge, | |
getitem, | |
gt, | |
index, | |
indexOf, | |
inv, | |
invert, | |
is_, | |
is_not, | |
itemgetter, | |
le, | |
length_hint, | |
lshift, | |
lt, | |
matmul, | |
methodcaller, | |
mod, | |
mul, | |
ne, | |
neg, | |
not_, | |
or_, | |
pos, | |
rshift, | |
setitem, | |
sub, | |
truediv, | |
truth, | |
xor, | |
) | |
from itertools import ( | |
# accumulate, | |
chain, | |
combinations, | |
combinations_with_replacement, | |
compress, | |
# count, | |
cycle, | |
dropwhile, | |
filterfalse, | |
# groupby, | |
islice, | |
permutations, | |
product, | |
repeat, | |
starmap, | |
takewhile, | |
tee, | |
zip_longest, | |
) | |
from functools import ( | |
cmp_to_key, | |
lru_cache, | |
# partial, | |
partialmethod, | |
# reduce, | |
singledispatch, | |
total_ordering, | |
update_wrapper, | |
wraps, | |
) | |
from cytoolz.curried import ( | |
accumulate, | |
assoc, | |
comp, | |
complement, | |
compose, | |
concat, | |
concatv, | |
cons, | |
count, | |
countby, | |
curry, | |
diff, | |
dissoc, | |
do, | |
drop, | |
filter, | |
first, | |
frequencies, | |
get, | |
get_in, | |
groupby, | |
identity, | |
interleave, | |
interpose, | |
isdistinct, | |
isiterable, | |
itemfilter, | |
itemmap, | |
iterate, | |
join, | |
juxt, | |
keyfilter, | |
keymap, | |
last, | |
map, | |
mapcat, | |
memoize, | |
merge, | |
merge_sorted, | |
merge_with, | |
nth, | |
partial, | |
partition, | |
partition_all, | |
partitionby, | |
peek, | |
pipe, | |
pluck, | |
random_sample, | |
reduce, | |
reduceby, | |
remove, | |
second, | |
sliding_window, | |
sorted, | |
tail, | |
take, | |
take_nth, | |
thread_first, | |
thread_last, | |
topk, | |
unique, | |
update_in, | |
valfilter, | |
valmap, | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment