//arrow-core/arrow.core/Either/isEmpty

isEmpty

common fun isEmpty(): Boolean

Returns true if Left

Example:

import arrow.core.*

 fun main(args: Array<String>) {
  //sampleStart
  Either.Left("foo").isEmpty()  // Result: true
  Either.Right("foo").isEmpty() // Result: false
}

Do you like Arrow?

Arrow Org
<