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