contains
Returns true if this is a Right and its value is equal to elem (as determined by ==), returns false otherwise.
Example:
import arrow.core.Either.Right
import arrow.core.Either.Left
import arrow.core.contains
fun main() {
Right("something").contains("something") // Result: true
Right("something").contains("anything") // Result: false
Left("something").contains("something") // Result: false
}Content copied to clipboard
Return
true if the option has an element that is equal (as determined by ==) to elem, false otherwise.
Parameters
elem
the element to test.