Releases: AFatNiBBa/lazylist
Releases · AFatNiBBa/lazylist
ES6 Modules
OnFirst
Sort, ReGroup, GetIterator
New
reGroup()
method onLazyGroupByList
getIterator()
method onLazyCacheList
Changes
- Now
sort()
andorderBy()
use selection sort
Fixes
Cache iteration
New
getBufferFunc()
method onLazyCacheList
Fixes
- Renamed
then()
tothenDo()
to fix a bug
Second negative behaviour
Changes
- Added the possibility to use another behaviour (By passing
true
to theleftOnNegative
parameter) when a negative number is passed:- To
skip()
- To
take()
- As
length
toslice()
- To
Fixes
- The
slice()
method now works correctly with negative indexes
Traverse, Insert, Remove
New
traverse()
methodinsert()
methodremove()
method
Changes
- Removed
flip
parameter fromappend()
MultiCount
New
multiCountì()
method
AllEquals, Fill, Rotate, ToGenerator
New
allEquals()
methodfill()
methodrotate()
methodtoGenerator()
static function
Changes
split()
now can take a predicate that splits the list if true is returnedsingle()
andfixedCount()
can now be provided with a parameter that tells the method when not to throw errorsdefaultIfEmpty()
has been renamed todefault()
first()
andlast()
are now getters (To provide them with a default value, use thedefault()
method)
Fixes
take()
no longer ignores the mode when a negative number is provided
Flat, OrderBy
New
flat()
methodorderBy()
method
Changes
- Now the
from()
static function can take a function that returns an iterator - Now if two sorting functions are chained, the two iterations will be combined in one