vector-builder-0.1.1: 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 element -> Builder element Source

Builder from a vector of elements.