vector-builder-0.3: Vector builder

Safe HaskellNone
LanguageHaskell2010

VectorBuilder.Builder

Synopsis

Documentation

data Builder element Source

An abstraction over the size of a vector for the process of its construction.

It postpones the actual construction of a vector until the execution of the builder.

Instances

Monoid (Builder element) Source

Provides support for O(1) concatenation.

Semigroup (Builder element) Source

Provides support for O(1) concatenation.

empty :: Builder element Source

Empty builder.

singleton :: element -> Builder element Source

Builder of a single element.

vector :: Vector vector element => vector element -> Builder element Source

Builder from an immutable vector of elements.

Supports all kinds of vectors: boxed, unboxed, primitive, storable.