Companion

Functions

Link copied to clipboard

PIso that defines the equality between Either and Validated

Link copied to clipboard

Iso that defines the equality between Either and Validated

Link copied to clipboard
fun <S> id(): Iso<S, S>

create an PIso between any type and itself. Id is the zero element of optics composition, for any optic o of type O (e.g. PLens, Prism, POptional, ...): o compose Iso.id == o

Link copied to clipboard
operator fun <S, T, A, B> invoke(get: (S) -> A, reverseGet: (B) -> T): PIso<S, T, A, B>

Invoke operator overload to create a PIso of type S with target A. Can also be used to construct Iso

Link copied to clipboard

Iso that defines equality between a List and Option

Link copied to clipboard

PIso that defines equality between a List and Option

Link copied to clipboard
fun <K> mapToSet(): Iso<Map<K, Unit>, Set<K>>

Iso that defines the equality between a Unit value Map and a Set with its keys

Link copied to clipboard
Link copied to clipboard

PIso that defines the equality between the nullable platform type and Option.

Link copied to clipboard

Iso that defines the equality between and arrow.core.Option and arrow.core.Either

Link copied to clipboard

PIso that defines the isomorphic relationship between Option and the nullable platform type.

Link copied to clipboard

Iso that defines the equality between and arrow.core.Option and arrow.core.Either

Link copied to clipboard

PIso that defines the equality between Option and the nullable platform type.

Link copied to clipboard

Iso that defines equality between String and List of Char

Link copied to clipboard

Iso that defines equality between Validated and Either

Link copied to clipboard

PIso that defines equality between Validated and Either