Skip to content

Latest commit

 

History

History
61 lines (40 loc) · 1.12 KB

CHANGELOG.md

File metadata and controls

61 lines (40 loc) · 1.12 KB

Changelog

This project adheres to Semantic Versioning.

2.1.0 (2022-06-09)

  • 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.

2.0.0 (2020-09-17)

  • 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