arrow-optics / arrow.optics.extensions / ListSnoc / snoc
open fun snoc(): Prism<List<A>, Tuple2<List<A>, A>>
open fun snoc():
Prism
<
List
<A>, Tuple2<
<A>, A>>
Provides a Prism between a S and its init and last element A.
Do you like Arrow?