arrow-optics / arrow.optics.typeclasses / Snoc / unsnoc
open fun S.unsnoc(): Option<Tuple2<S, A>>
Deconstruct an S between its init and last element.
Do you like Arrow?