zio.blocks.chunk
Members list
Type members
Classlikes
This object was generated by sbt-buildinfo.
This object was generated by sbt-buildinfo.
Attributes
- Source
- BuildInfo.scala
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
- Self type
-
BuildInfo.type
A Chunk[A] represents a chunk of values of type A. Chunks are usually backed by arrays, but expose a purely functional, safe interface to the underlying elements, and they become lazy on operations that would be costly with arrays, such as repeated concatenation.
A Chunk[A] represents a chunk of values of type A. Chunks are usually backed by arrays, but expose a purely functional, safe interface to the underlying elements, and they become lazy on operations that would be costly with arrays, such as repeated concatenation.
The implementation of balanced concatenation is based on the one for Conc-Trees in "Conc-Trees for Functional and Parallel Programming" by Aleksandar Prokopec and Martin Odersky. http://aleksandar-prokopec.com/resources/docs/lcpc-conc-trees.pdf
NOTE: For performance reasons, Chunk does not box primitive types. As a result, it is not safe to construct chunks from heterogeneous primitive types.
Attributes
- Companion
- object
- Source
- Chunk.scala
- Supertypes
-
trait Serializabletrait IndexedSeq[A]trait IndexedSeq[A]trait Seq[A]trait Seq[A]trait Puretrait Equalstrait PartialFunction[Int, A]trait Int => Atrait Iterable[A]trait Iterable[A]trait IterableOnce[A]class Objecttrait Matchableclass AnyShow all
- Self type
-
Chunk[A]
Attributes
- Companion
- class
- Source
- Chunk.scala
- Supertypes
-
trait StrictOptimizedSeqFactory[Chunk]trait SeqFactory[Chunk]trait IterableFactory[Chunk]trait Puretrait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
-
Chunk.type
Attributes
- Companion
- class
- Source
- Chunk.scala
- Supertypes
- Self type
-
ChunkBuilder.type
A ChunkBuilder[A] can build a Chunk[A] given elements of type A. ChunkBuilder is a mutable data structure that is implemented to efficiently build chunks of unboxed primitives and for compatibility with the Scala collection library.
A ChunkBuilder[A] can build a Chunk[A] given elements of type A. ChunkBuilder is a mutable data structure that is implemented to efficiently build chunks of unboxed primitives and for compatibility with the Scala collection library.
Attributes
- Companion
- object
- Source
- Chunk.scala
- Supertypes
- Known subtypes
An order-preserving immutable map backed by Chunk. Keys and values are stored in parallel Chunks, maintaining insertion order.
An order-preserving immutable map backed by Chunk. Keys and values are stored in parallel Chunks, maintaining insertion order.
This map is optimized for small collections where ordering matters. For larger collections requiring frequent lookups, consider using indexed to create an optimized version with O(1) key lookup (at the cost of additional memory).
Key characteristics:
- Preserves insertion order during iteration
- O(n) key lookup by default
- O(1) indexed access by position
- Equality is order-independent (like standard Map)
Type parameters
- K
-
The key type
- V
-
The value type
Attributes
- Companion
- object
- Source
- ChunkMap.scala
- Supertypes
-
trait Serializableclass AbstractMap[K, V]trait Map[K, V]trait Iterable[(K, V)]class AbstractMap[K, V]trait Map[K, V]trait Puretrait Equalstrait MapFactoryDefaults[K, V, Map, Iterable]trait PartialFunction[K, V]trait K => Vclass AbstractIterable[(K, V)]trait Iterable[(K, V)]trait IterableFactoryDefaults[(K, V), Iterable]trait IterableOnce[(K, V)]class Objecttrait Matchableclass AnyShow all
- Self type
-
Attributes
- Companion
- class
- Source
- ChunkMap.scala
- Supertypes
- Self type
-
ChunkMap.type
Attributes
- Companion
- class
- Source
- Chunk.scala
- Supertypes
- Self type
-
NonEmptyChunk.type
A NonEmptyChunk is a Chunk that is guaranteed to contain at least one element. As a result, operations which would not be safe when performed on Chunk, such as head or reduce, are safe when performed on NonEmptyChunk. Operations on NonEmptyChunk which could potentially return an empty chunk will return a Chunk instead.
A NonEmptyChunk is a Chunk that is guaranteed to contain at least one element. As a result, operations which would not be safe when performed on Chunk, such as head or reduce, are safe when performed on NonEmptyChunk. Operations on NonEmptyChunk which could potentially return an empty chunk will return a Chunk instead.
Attributes
- Companion
- object
- Source
- Chunk.scala
- Supertypes
- Self type