arrow-optics / arrow.optics.extensions / ListSnoc / snoc

snoc

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

Provides a Prism between a S and its init and last element A.

Do you like Arrow?

Arrow Org
<