Module
Type.Data.List
- Package
- purescript-typelevel-lists
- Repository
- PureFunctor/purescript-typelevel-lists
Type-level heterogenous list of kinds for PureScript
#Cons' Source
data Cons' :: Item' -> List' -> List'
Prepends any Item'
to a List'
, creating a new List'
.
Instances
IsMember x (Cons' x xs) True
(IsMember x ys r) => IsMember x (Cons' y ys) r
(Concat xs ys zs) => Concat (Cons' x xs) ys (Cons' x zs)
IsEmpty (Cons' x xs) False
(Init' z zs ws) => Init' y (Cons' z zs) (Cons' y ws)
(Init' x xs ys) => Init (Cons' x xs) ys
Last (Cons' x Nil') x
(Last xs ys) => Last (Cons' x xs) ys
(SumInt n (Pos (Succ Z)) m, Length' xs m r) => Length' (Cons' x xs) n r
(SumInt n (Neg (Succ Z)) m, Take m xs ys) => Take n (Cons' x xs) (Cons' x ys)
(SumInt n (Neg (Succ Z)) m, Drop m xs ys) => Drop n (Cons' x xs) ys
#SymbolItem Source
data SymbolItem :: Symbol -> Item'
Wraps a Symbol
into an Item'
.
- Modules
- Type.
Data. List