vector-0.12.3.1: Efficient Arrays
Copyright (c) Roman Leshchinskiy 2008-2010
License BSD-style
Maintainer Roman Leshchinskiy <rl@cse.unsw.edu.au>
Stability experimental
Portability non-portable
Safe Haskell None
Language Haskell2010

Data.Vector.Generic.New

Description

Purely functional interface to initialisation of mutable vectors

Documentation

data New v a Source #

Constructors

New ( forall s. ST s ( Mutable v s a))

create :: ( forall s. ST s ( Mutable v s a)) -> New v a Source #

apply :: ( forall s. Mutable v s a -> Mutable v s a) -> New v a -> New v a Source #

modify :: ( forall s. Mutable v s a -> ST s ()) -> New v a -> New v a Source #

modifyWithBundle :: ( forall s. Mutable v s a -> Bundle u b -> ST s ()) -> New v a -> Bundle u b -> New v a Source #

transform :: Vector v a => ( forall m. Monad m => Stream m a -> Stream m a) -> ( Size -> Size ) -> New v a -> New v a Source #

transformR :: Vector v a => ( forall m. Monad m => Stream m a -> Stream m a) -> ( Size -> Size ) -> New v a -> New v a Source #