Tree of a partial function of type Any => Any
.
None
if the pattern is irrefutable; Some(guard expression tree)
if the pattern is not irrefutable and potentially requires a guard condition.
List of pattern variables in the order of their appearance in the syntax tree.
None
if the pattern is irrefutable; Some(guard expression tree)
if the pattern is not irrefutable and potentially requires a guard condition.
Tree of a partial function of type Any => Any
.
Does this pattern contain a nontrivial syntax tree that could contain other molecules?
Does this pattern contain a nontrivial syntax tree that could contain other molecules?
true or false
List of pattern variables in the order of their appearance in the syntax tree.
Nontrivial pattern matching expression that could contain
unapply
, destructuring, and pattern@
variables. For instance, ifc
is a molecule with values of type(Int, Option[Int])
then and example of nontrivial pattern match could bec( z@(x, Some(y)) )
. In this example, we will havevars = List("z", "x", "y")
andmatcher = { case z@(x, Some(y)) => (z, x, y) }
.Tree of a partial function of type
Any => Any
.None
if the pattern is irrefutable;Some(guard expression tree)
if the pattern is not irrefutable and potentially requires a guard condition.List of pattern variables in the order of their appearance in the syntax tree.