arrow-optics / arrow.optics.extensions / ListCons
interface ~~ListCons~~<A> :
Cons
<
List
<A>, A>
Deprecated: Typeclass interface implementation will not be exposed directly anymore.
Cons instance definition for List.
cons | Provides a Prism between S and its first element A and tail S.open fun cons(): Prism < List <A>, Tuple2<A, List <A>>> |
invoke | operator fun <A> invoke(): ListCons <A> |
Do you like Arrow?
✖