Returns Some(output) in case the given expression matches one of the given patterns of the form pattern => output, and None otherwise.
Some(output)
pattern => output