This project adheres to Semantic Versioning.
-
Allow to create a list from an iterable
You can now build a list from any iterable object. In the following example we use a generator to create a list of three random numbers:
function* rand() { while (true) { yield Math.random() } } const l = CowList.fromIterable(rand(), 3) const ml = MutList.fromIterable(rand(), 3)
Note that you must provide the number of items to pick from the iterable object in the second parameter.
-
Add seek bias for list iterators.
As a consequence, List#atEqual has a new parameter to control the seek bias.
You can simply update this old code:
list.atEqual(f)
with:
list.atEqual(f, false)
-
Make summary a property of list interface
Update following codes:
list.summary()
with:
list.summary
-
Fix infinite recursion of list from array