basement-0.0.15: Foundation scrap box of array & string
Safe Haskell None
Language Haskell2010

Basement.Sized.UVect

Documentation

data MUVect (n :: Nat ) ty st Source #

index :: forall i n ty. PrimType ty => UVect n ty -> Offset ty -> ty Source #

foldl' :: PrimType ty => (a -> ty -> a) -> a -> UVect n ty -> a Source #

foldr :: PrimType ty => (ty -> a -> a) -> a -> UVect n ty -> a Source #

sub :: forall i j n ty. ((i <=? n) ~ ' True , (j <=? n) ~ ' True , (i <=? j) ~ ' True , PrimType ty, KnownNat i, KnownNat j, Offsetable ty i, Offsetable ty j) => UVect n ty -> UVect (j - i) ty Source #

uncons :: forall n ty. ( CmpNat 0 n ~ ' LT , PrimType ty, KnownNat n, Offsetable ty n) => UVect n ty -> (ty, UVect (n - 1) ty) Source #

unsnoc :: forall n ty. ( CmpNat 0 n ~ ' LT , KnownNat n, PrimType ty, Offsetable ty n) => UVect n ty -> ( UVect (n - 1) ty, ty) Source #

splitAt :: forall i n ty. ( CmpNat i n ~ ' LT , PrimType ty, KnownNat i, Countable ty i) => UVect n ty -> ( UVect i ty, UVect (n - i) ty) Source #