You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
library functions now accept iterators prototyped as f(v, k, ...) instead of f(k, v, ...).
It improves the benefits of chaning and helps writting a clear functional-style code.
Library functions affected with this breaking change are : each, eachi,countf, map, reduceby, select, reject, all, groupBy, countBy, selectWhile, dropWhile, findIndex, findLastIndex, chunk.
reduceby is now prototyped as reduceby(t, f, pred, state) instead of reduceby(t, f, state, pred).
times is now prototyped as times(iter, n, ...) instead of times(iter, n, ...).
bindAll was renamed to bindall
functions no longer accept optional sort third arguments
sliding was renamed to overlapping
Improved range to handle negative progressions and start the count from 1.
memoize no longer takes a hash function.
Other changes
Made shift a default library function, and pop its alias.
Moved shuffle from table function to array functions
Made iterator to accept an extra optional arg n
Additions
Added support for operators
Arithmetic operators : add, sub, mul, div, mod, exp, pow (alias to exp), unm, neg (alias to unm), floordiv, intdiv