Name : ghc-vector-builder
| |
Version : 0.3.8.3
| Vendor : openSUSE
|
Release : bp155.2.5
| Date : 2022-08-20 07:39:30
|
Group : Unspecified
| Source RPM : ghc-vector-builder-0.3.8.3-bp155.2.5.src.rpm
|
Size : 0.05 MB
| |
Packager : https://bugs_opensuse_org
| |
Summary : 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 < > > B.foldable list < > > B.singleton element.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/openSUSE:/Leap:/15.5:/ToTest/images/repo/openSUSE-Leap-15.5-x86_64-aarch64-ppc64le-s390x-Media1/x86_64 |