Overview of Immutable Arrays - Core
mainThe ImmutableArray core library provides high-performance, immutable data structures for Kotlin. It is designed to offer the convenience of standard library collections while maintaining the efficiency of primitive arrays through specialization.
Key features include:
- A generic
ImmutableArray<T>class for storing any object type. - 8 specialized implementations for primitive types to avoid boxing overhead:
ImmutableIntArray,ImmutableLongArray,ImmutableDoubleArray,ImmutableFloatArray,ImmutableBooleanArray,ImmutableByteArray,ImmutableShortArray, andImmutableCharArray. - Standard collection operations such as
map,filter, and more. - Kotlin standard library extensions to allow seamless integration with existing codebases.