hw-prim-0.0.3.0: Primitive functions and data types

Safe HaskellNone
LanguageHaskell2010

HaskellWorks.Data.Vector.VectorLike

Synopsis

Documentation

class VectorLike v where Source

Class of values that support vector like operations

Associated Types

type Elem v Source

Methods

(!!!) :: v -> Position -> Elem v Source

vConcat :: [v] -> v Source

vEmpty :: v Source

vFilter :: (Elem v -> Bool) -> v -> v Source

vGenerate :: Int -> (Int -> Elem v) -> v Source

vLength :: v -> Count Source

vSnoc :: v -> Elem v -> v Source

vDrop :: Count -> v -> v Source

vTake :: Count -> v -> v Source

vIndex :: v -> Position -> Elem v Source

vSlice :: Position -> Position -> v -> v Source

vUncons :: v -> Maybe (Elem v, v) Source