🦥 A lazy functional iteration library supporting sync, async, and concurrent iteration.
APACHE-2.0 License
Bot releases are hidden (Show)
Require node 18
Full Changelog: https://github.com/TomerAberbach/lfi/compare/v2.1.1...v3.0.0
Published by TomerAberbach 6 months ago
Full Changelog: https://github.com/TomerAberbach/lfi/compare/v2.1.0...v2.1.1
Published by TomerAberbach 7 months ago
asConcur
/asAsync
in some code (perf)asAsync
Full Changelog: https://github.com/TomerAberbach/lfi/compare/v2.0.0...v2.1.0
Published by TomerAberbach about 1 year ago
collect
and fold
functions and types in favor of generalizing reduce
functions and types
collect
, collectAsync
, and collectConcur
(use reduce
, reduceAsync
, and reduceConcur
instead)fold
, foldAsync
, and foldConcur
(use reduce
, reduceAsync
, and reduceConcur
instead)counting
(use toCount()
instead)folding
(pass a reducer object instead)grouping
(use toGrouped(...)
instead)toMap
, toSet
, etc.) are now reducer functions. Use like reduce(toMap())
!cached
-> cache
chunked
-> chunk
indexed
-> index
windowed
-> window
without
-> exclude
New functions:
consume
, consumeAsync
, and consumeConcur
(iterates over an iterable; use to force it to compute if it's lazy)filterMap
, filterMapAsync
, and filterMapConcur
(return null or a value from the callback; returns mapped iterable containing non-null values)mapReducer
and mapAsyncReducer
(mapping methods for new reducer concept)opaque
, opaqueAsync
, and opaqueConcur
(takes an iterable object and returns an object that's just an iterable; for example, if you pass an array you'll get just an iterable back)sum
, sumAsync
, sumConcur
reduce
, reduceAsync
, and reduceConcur
toArray
toCount
toGrouped
toJoin
toMax
toMin
toMinMax
toMinMaxBy
toMinMaxByAsync
toMinMaxWith
toMinMaxWithAsync
toMultiple
toObject
toSet
toSum
toWeakMap
toWeakSet
Full Changelog: https://github.com/TomerAberbach/lfi/compare/v1.0.6...v2.0.0
Published by TomerAberbach over 2 years ago
Full Changelog: https://github.com/TomerAberbach/lfi/compare/v1.0.5...v1.0.6
Published by TomerAberbach over 2 years ago
Full Changelog: https://github.com/TomerAberbach/lfi/compare/v1.0.4...v1.0.5
Published by TomerAberbach over 2 years ago
Full Changelog: https://github.com/TomerAberbach/lfi/compare/v1.0.3...v1.0.4
Fixed an issue with collect(grouping(...))
types. Writing something like collect(grouping(toArray, toObject))
should infer more accurate types.