TaggedCostrong

Costrong instance for Tagged: keeps only the wanted component of the carried pair.

Functions

Link copied to clipboard
open fun <A, B, C, D> dimap(f: (A) -> B, g: (C) -> D, v: K3<Tagged.T, Unit, B, C>): Tagged<A, D>

Pre-composes f on the input and post-composes g on the output.

Link copied to clipboard
open fun <A, B, C> lmap(f: (A) -> B, v: K3<Tagged.T, Unit, B, C>): Tagged<A, C>

Maps only the input.

Link copied to clipboard
open fun <A, B, C> rmap(g: (B) -> C, v: K3<Tagged.T, Unit, A, B>): Tagged<A, C>

Maps only the output.

Link copied to clipboard
open override fun <A, B, C> unfirst(v: K3<Tagged.T, Unit, Pair<A, C>, Pair<B, C>>): Tagged<A, B>

Removes the second component carried alongside A / B.

Link copied to clipboard
open override fun <A, B, C> unsecond(v: K3<Tagged.T, Unit, Pair<C, A>, Pair<C, B>>): Tagged<A, B>

Removes the first component carried alongside A / B.