//arrow-core/arrow.core/Ior/isBoth

isBoth

common abstract val isBoth: Boolean

Returns true if this is a Both, false otherwise.

Example:

import arrow.core.Ior

fun main() {
  Ior.Left("tulip").isBoth           // Result: false
  Ior.Right("venus fly-trap").isBoth // Result: false
  Ior.Both("venus", "fly-trap").isBoth // Result: true
}

Do you like Arrow?

Arrow Org
<