arrow-optics / arrow.optics.typeclasses / Snoc / unsnoc

unsnoc

open fun S.unsnoc(): Option<Tuple2<S, A>>

Deconstruct an S between its init and last element.

Do you like Arrow?

Arrow Org
<