arrow-optics / arrow.optics.extensions / ListCons / cons
open fun cons(): Prism<List<A>, Tuple2<A, List<A>>>
open fun cons():
Prism
<
List
<A>, Tuple2<A,
<A>>>
Provides a Prism between S and its first element A and tail S.
Do you like Arrow?