arrow-optics / arrow.optics.extensions / ListSnoc

ListSnoc

interface ~~ListSnoc~~<A> : Snoc<List<A>, A> Deprecated: Typeclass interface implementation will not be exposed directly anymore.

Snoc instance definition for List.

Functions

snoc Provides a Prism between a S and its init and last element A.open fun snoc(): Prism<List<A>, Tuple2<List<A>, A>>

Companion Object Functions

invoke operator fun <A> invoke(): ListSnoc<A>

Do you like Arrow?

Arrow Org
<