arrow-core-data / arrow.core / Validated / leftMap

leftMap

fun <EE> leftMap(f: (E) -> EE): Validated<EE, A>

Apply a function to an Invalid value, returning a new Invalid value. Or, if the original valid was Valid, return it.

Do you like Arrow?

Arrow Org
<