dimap

abstract fun <A, B, C, D> dimap(f: (A) -> B, g: (C) -> D, v: K3<T, F, B, C>): K3<T, F, A, D>(source)

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