definitive-base-1.0: The base modules of the Definitive framework.

Safe HaskellNone

Data.Containers.Sequence

Contents

Synopsis

Documentation

class Monoid t => Sequence t whereSource

Methods

splitAt :: Int -> t -> (t, t)Source

Instances

class Stream c s | s -> c whereSource

Methods

uncons :: s -> Maybe (c, s)Source

cons :: c -> s -> sSource

Instances

take :: Sequence t => Int -> t -> tSource

drop :: Sequence t => Int -> t -> tSource

Strict and lazy slices (bytestrings on arbitrary Storable types)

type Slice a = Vector aSource

data Slices a Source

Instances

slice :: (Storable a, Storable b) => Iso (Slice a) (Slice b) [a] [b]Source

slices :: (Storable a, Storable b) => Iso (Slices a) (Slices b) (Slice a) (Slice b)Source

unsafeWith :: Storable a => Vector a -> (Ptr a -> IO b) -> IO b

Pass a pointer to the vector's data to the IO action. The data may not be modified through the 'Ptr.