The latest version of vector-builder is 0.3.8.5-0.

vector-builder

Version 0.3.3 revision 0 uploaded by NikitaVolkov.

Package meta

Synopsis
Vector builder
Description

An API for efficient and convenient construction of vectors. It provides the composable Builder abstraction, which has instances of the Monoid and Semigroup classes.

Usage

First you use the Builder abstraction to specify the structure of the vector. Then you execute the builder to actually produce the vector.

Example

The following code shows how you can efficiently concatenate different datastructures into a single immutable vector:


import qualified Data.Vector as A
import qualified VectorBuilder.Builder as B
import qualified VectorBuilder.Vector as C


myVector :: A.Vector a -> [a] -> a -> A.Vector a
myVector vector list element =
  C.build builder
  where
    builder =
      B.vector vector <>
      foldMap B.singleton list <>
      B.singleton element
Author
Nikita Volkov <nikita.y.volkov@mail.ru>
Bug reports
https://github.com/nikita-volkov/vector-builder/issues
Category
Vector
Copyright
(c) 2016, Nikita Volkov
Homepage
https://github.com/nikita-volkov/vector-builder
Maintainer
Nikita Volkov <nikita.y.volkov@mail.ru>
Package URL
n/a
Stability
n/a

Components