You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -614,15 +614,13 @@ In case all files are suspended due to cyclic dependencies the compilation will
614
614
615
615
It is possible to deconstruct or extract values out of `Expr` using pattern matching.
616
616
617
-
#### scala.quoted.matching
617
+
`scala.quoted` contains objects that can help extracting values from `Expr`.
618
618
619
-
`scala.quoted.matching` contains objects that can help extracting values from `Expr`.
620
-
621
-
*`scala.quoted.matching.Const`: matches an expression of a literal value and returns the value.
622
-
*`scala.quoted.matching.Value`: matches an expression of a value and returns the value.
623
-
*`scala.quoted.matching.ExprSeq`: matches an explicit sequence of expresions and returns them. These sequences are useful to get individual `Expr[T]` out of a varargs expression of type `Expr[Seq[T]]`.
624
-
*`scala.quoted.matching.ConstSeq`: matches an explicit sequence of literal values and returns them.
625
-
*`scala.quoted.matching.ValueSeq`: matches an explicit sequence of values and returns them.
619
+
*`scala.quoted.Const`: matches an expression of a literal value and returns the value.
620
+
*`scala.quoted.Value`: matches an expression of a value and returns the value.
621
+
*`scala.quoted.ExprSeq`: matches an explicit sequence of expresions and returns them. These sequences are useful to get individual `Expr[T]` out of a varargs expression of type `Expr[Seq[T]]`.
622
+
*`scala.quoted.ConstSeq`: matches an explicit sequence of literal values and returns them.
623
+
*`scala.quoted.ValueSeq`: matches an explicit sequence of values and returns them.
626
624
627
625
These could be used in the following way to optimize any call to `sum` that has statically known values.
0 commit comments