//arrow-core/arrow.core/Either/isNotEmpty

isNotEmpty

common fun isNotEmpty(): Boolean

Returns true if Right

Example:

 import arrow.core.*

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

Do you like Arrow?

Arrow Org
<