3.1.0
New:
- Performance enhancement to Maps and Sets with 8 or fewer entries.
OrderedSet
introduced.- Map and Set can now be
sort
ed, returning an OrderedMap or OrderedSet, respectively. - Improved
sortBy
,maxBy
andminBy
performance
Fixed:
Map#set
orSet#add
now return themselves for a no-op involving a hash collision.- Accessing an Indexed Iterable (such as
List
) with strings are now coerced to number when possible, mirroring the behavior of native Array. List
,Stack
andSet
constructors documentation now matches behavior.- Records now ignore unknown keys provided to constructors.
- OrderedMap no longer leaks memory when keys are removed.