arrow-core-data / arrow.core / Ior / Both / isBoth

isBoth

val isBoth: Boolean

Returns true if this is a Both, false otherwise.

Example:

Left("tulip").isBoth           // Result: false
Right("venus fly-trap").isBoth // Result: false
Both("venus", "fly-trap").isBoth // Result: true

Do you like Arrow?

Arrow Org
<