contains method

bool contains(
  1. A candidate
)

Return true if this Option is a Some and value inside equal candidate

Implementation

bool contains(A candidate) => isDefined && Some(candidate) == this;