arrow-optics / arrow.optics / arrow.core.ListK

Extensions for arrow.core.ListK

head Optional to safely operate on the head of a listfun <A> ListK.Companion.~~head~~(): Optional<List<A>, A>
tail Optional to safely operate on the tail of a listfun <A> ListK.Companion.~~tail~~(): Optional<List<A>, List<A>>
toOptionNel Iso that defines equality between a List and Optionfun <A> ListK.Companion.~~toOptionNel~~(): Iso<List<A>, Option<NonEmptyList<A>>>
toPOptionNel PIso that defines equality between a List and Optionfun <A, B> ListK.Companion.~~toPOptionNel~~(): PIso<List<A>, List<B>, Option<NonEmptyList<A>>, Option<NonEmptyList<B>>>

Do you like Arrow?

Arrow Org
<