Companion

Functions

Link copied to clipboard
fun <S, A, B> fromIso(C: Cons<A, B>, iso: Iso<S, A>): Cons<S, B>

Lift an instance of Cons using an Iso.

Link copied to clipboard
operator fun <S, A> invoke(prism: Prism<S, Pair<A, S>>): Cons<S, A>
Link copied to clipboard
fun <A> list(): Cons<List<A>, A>

Cons instance definition for List.

Link copied to clipboard

Cons instance for String.