Skip to content

Latest commit

 

History

History
25 lines (23 loc) · 862 Bytes

notes.md

File metadata and controls

25 lines (23 loc) · 862 Bytes

##Comparison with Gentoo

Gentoo functions and the equivalent in this library.

Gentoo Lib
accum (Not useful)
compose concat, interlace
dedupe dedupe
filter filter (no thisValue)
forEach forEach (no thisValue)
lastValue (Not applicable to generators, must convert to finite array)
map map
nthValue .drop(n - 1).take(1)
partition
pluck pluck
skip drop
take (Returns an array) .chunk(n).take(1)
limit take
loop (records the output of an iterator, then starts repeating it) repeat (takes a finite generator function or iterable and repeatedly iterates over it)
everyN everyNth
reduce N/A (Only works with finite sequences, outputs single value)
range range
takeWhile takeWhile
chain iterate, but all generators chainable by default