arrow-optics / arrow.optics.extensions / ListCons

ListCons

interface ~~ListCons~~<A> : Cons<List<A>, A> Deprecated: Typeclass interface implementation will not be exposed directly anymore.

Cons instance definition for List.

Functions

cons Provides a Prism between S and its first element A and tail S.open fun cons(): Prism<List<A>, Tuple2<A, List<A>>>

Companion Object Functions

invoke operator fun <A> invoke(): ListCons<A>

Do you like Arrow?

Arrow Org
<