Module
Data.FastVect.FastVect
- Package
- purescript-fast-vect
- Repository
- sigma-andex/purescript-fast-vect
#Vect Source
newtype Vect :: Int -> Type -> Typenewtype Vect len elem
A Vector: A list-like data structure that encodes it's length in the type, backed by an Array.
vect ∷ Vect 1 String
vect = singleton "a"
Instances
(Show elem, Reflectable len Int) => Show (Vect len elem)(Eq elem) => Eq (Vect len elem)(Ord elem) => Ord (Vect len elem)Functor (Vect len)Apply (Vect len)(Compare len NegOne GT, Reflectable len Int) => Applicative (Vect len)FunctorWithIndex Int (Vect len)Foldable (Vect len)FoldableWithIndex Int (Vect len)Traversable (Vect len)TraversableWithIndex Int (Vect len)IsVect (Vect n)
#indexModulo Source
indexModulo :: forall m elem. IndexModulo Vect m elem