API Reference¶
Generated Dokka API docs can be built with:
./gradlew dokkaGeneratePublicationHtml
Collections¶
Arr<T>: immutable array-backed sequence with copied inputs and O(1) indexed reads.ArrMap<K, V>: compact immutable map optimized for small key sets.Chunk<T>: immutable chunked sequence with slicing, mapping, filtering, and concatenation helpers.Chain<T>: lazy concatenation tree for efficient append/prepend before materialization.ConsList<T>: persistent singly linked list.LazyList<T>: lazily evaluated linked sequence.
Mutable Primitive Storage¶
*Buffer: mutable contiguous primitive buffers with explicit capacity management and primitive-array conversions.*Deque: mutable ring-buffer deques with push/pop operations at both ends.- Primitive deques expose both
sizeandlength;lengthis a compatibility alias forsize. - Buffer and deque element operations throw
IndexOutOfBoundsExceptionfor invalid indices unless the method name ends inOrNull. - Comparable buffers provide
sort,sorted,binarySearch,min, andmax; binary search requires already sorted contents.
Persistent Structures¶
BankersQueue<T>: persistent FIFO queue backed by lazy front rotation. Usepeek/peekOrNullto inspect the next value, anddequeue,dequeueOrNull, orunconsto consume the front value with the resulting queue.LeftistHeap<T>: persistent mergeable min-heap.
Functional Types¶
Option<T>:Some(value)orNone, with nullable conversion helpers.Either<L, R>:Left(value)orRight(value), withmap,flatMap, and side-specific transforms.Validated<E, A>: failure or success with accumulated issues.
Platform Helpers¶
JVM/Android source sets add weak collection constructors, deterministic shuffling using
SplittableRandom, UUID byte conversion, and enum-set copying helpers.