arrow-optics / arrow.optics.extensions / ListCons / cons

cons

open fun cons(): Prism<List<A>, Tuple2<A, List<A>>>

Provides a Prism between S and its first element A and tail S.

Do you like Arrow?

Arrow Org
<