Immutable Arrays
Breaking Changes:
- Extension functions
toImmutableIntArray
,toImmutableFloatArray
, etc. have been renamed
totoImmutableArray
so that the most efficient primitive variant is chosen by default.
New Features:
- Add
sortedByDescending
method - Add
sortedBy
method - Add
sortedDescending
extension functions - Add
sortedWith
method - Add
sorted
extension functions - Add
mapIndexedNotNull
specializations - Add
mapNotNull
specializations - Add dynamic factory functions (eg.
buildImmutableArray
,buildImmutableBooleanArray
etc.) for when the size
isn't known in advance - Add builders for constructing immutable arrays when the size isn't known in advance
- Add
mapIndexed
specializations - Add
map
specializations
Performance Improvements:
- Optimized
immutableArrayOf
factory functions - Optimized the creation of immutable arrays from regular arrays