|Version on this page:||0.3.8.3@rev:1|
|LTS Haskell 20.16:||0.3.8.4|
|Stackage Nightly 2023-03-28:||0.3.8.4|
|Latest on Hackage:||0.3.8.4|
This version can be pinned in stack with:
Module documentation for 0.3.8.3
Depends on 2 packages(full list with versions):
Used by 3 packages in lts-18.28(full list with versions):
An API for efficient and convenient construction of vectors.
It provides the composable
Builder abstraction, which has instances of the
First you use the
Builder abstraction to specify the structure of the vector.
Then you execute the builder to actually produce the vector.
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 <> B.foldable list <> B.singleton element