opc-xml-da-client-0.1: OPC XML-DA Client
Safe HaskellNone
LanguageHaskell2010

OpcXmlDaClient.Base.Vector

Description

General utilities for immutable vectors.

Synopsis

Documentation

fromReverseListN :: Vector v a => Int -> [a] -> v a Source #

>>> fromReverseListN 3 [1,2,3] :: Data.Vector.Vector Int
[3,2,1]

initialized :: Vector v a => Int -> (forall s. Mutable v s a -> ST s ()) -> v a Source #

many :: (MonadPlus m, Vector v a) => m a -> m (v a) Source #

Efficiently build a vector with the many pattern.

manyWithIndex :: (MonadPlus m, Vector v a) => (Int -> m a) -> m (v a) Source #

manyWithIndexTerminating :: (MonadPlus m, Vector v a) => (Int -> m (Either e a)) -> m (Either e (v a)) Source #