contains method

bool contains(
  1. R value
)

Returns true when this is a Right containing value.

Implementation

bool contains(R value) => fold((left) => false, (right) => right == value);