sidekick.seq¶
Basic types¶
iter |
|
generator |
Basic manipulation of sequences¶
cons |
|
uncons |
|
first |
|
second |
|
nth |
|
find |
|
only |
|
last |
|
is_empty |
|
length |
|
consume |
Creating new sequences¶
cycle |
|
iterate |
|
iterate_indexed |
|
repeat |
|
repeatedly |
|
singleton |
|
unfold |
Filtering and select sub-sequences¶
filter |
|
remove |
|
separate |
|
drop |
|
rdrop |
|
take |
|
rtake |
|
unique |
|
dedupe |
|
converge |
Grouping items¶
group_by |
|
chunks |
|
chunks_by |
|
window |
|
pairs |
|
partition |
|
distribute |
Reducing sequences¶
fold |
|
reduce |
|
scan |
|
acc |
|
fold_by |
|
reduce_by |
|
fold_together |
|
reduce_together |
|
scan_together |
|
acc_together |
|
product |
|
products |
|
sum |
|
sums |
|
all_by |
|
any_by |
|
top_k |