snoc

abstract fun snoc(): Prism<S, Pair<S, A>>(source)

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


open infix fun S.snoc(last: A): S(source)

Append an element A to S.