arrow-optics / arrow.optics / arrow.core.NonEmptyList

Extensions for arrow.core.NonEmptyList

head Lens to operate on the head of a NonEmptyListfun <A> NonEmptyList.Companion.~~head~~(): Lens<NonEmptyList<A>, A>
tail Lens to operate on the tail of a NonEmptyListfun <A> NonEmptyList.Companion.~~tail~~(): Lens<NonEmptyList<A>, List<A>>

Do you like Arrow?

Arrow Org
<