object KNil extends KNil with Product with Serializable
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- KNil
- Serializable
- Serializable
- Product
- Equals
- KNil
- KList
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
- def :^:[M[_], H](h: M[H]): KCons[H, KNil, M]
-
final
def
apply[N[x], Z](f: (KNil) ⇒ Z)(implicit ap: Applicative[N]): N[Z]
Applies
f
to the elements of this list in the applicative functor defined byap
. -
final
def
foldr[B](f: (Types.NothingK[_], B) ⇒ B, init: B): B
Folds this list using a function that operates on the homogeneous type of the elements of this list.
-
final
def
toList: Nil.type
Discards the heterogeneous type information and constructs a plain List from this KList's elements.
-
final
def
transform[N[_]](f: ~>[Types.NothingK, N]): Transform[N]
Apply the natural transformation
f
to each element. -
final
def
traverse[N[_], P[_]](f: ~>[Types.NothingK, [T]N[P[T]]])(implicit np: Applicative[N]): N[KNil]
Equivalent to
transform(f) . apply(x => x)
, this is the essence of the iterator at the level of natural transformations.