//arrow-core/arrow.core/Ior/isRight

isRight

common abstract val isRight: Boolean

Returns true if this is a Right, false otherwise.

Example:

import arrow.core.Ior

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

Do you like Arrow?

Arrow Org
<