Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class VectorLike v where
- type Elem v
- (!!!) :: v -> Position -> Elem v
- vConcat :: [v] -> v
- vEmpty :: v
- vFilter :: (Elem v -> Bool) -> v -> v
- vGenerate :: Int -> (Int -> Elem v) -> v
- vLength :: v -> Count
- vSnoc :: v -> Elem v -> v
- vDrop :: Count -> v -> v
- vTake :: Count -> v -> v
- vIndex :: v -> Position -> Elem v
- vSlice :: Position -> Position -> v -> v
Documentation
class VectorLike v where Source
Class of values that support vector like operations
(!!!) :: v -> Position -> Elem v Source
vFilter :: (Elem v -> Bool) -> v -> v Source
vGenerate :: Int -> (Int -> Elem v) -> v Source
vSnoc :: v -> Elem v -> v Source
vDrop :: Count -> v -> v Source
vTake :: Count -> v -> v Source