arrow-core-data / arrow.core / Ior / pad

pad

fun ~~pad~~(): Pair<Option<A>, Option<B>> Deprecated: Deprecated, use padNull instead

Return this Ior as Pair of Option

Example:

Ior.Right(12).pad()          // Result: Pair(None, Some(12))
Ior.Left(12).pad()           // Result: Pair(Some(12), None)
Ior.Both("power", 12).pad()  // Result: Pair(Some("power"), Some(12))

Do you like Arrow?

Arrow Org
<