Exprs
object Exprs
Value members
Concrete methods
Matches literal sequence of literal constant value expressions and return a sequence of values.
Matches literal sequence of literal constant value expressions and return a sequence of values.
Usage:
instead.
exprs.map(_.valueOrError)scala
inline def sum(args: Int*): Int = ${ sumExpr('args) }
def sumExpr(argsExpr: Expr[Seq[Int]])(using Quotes): Expr[Int] = argsExpr match
case Varargs(Exprs(args)) =>
case Varargs(Exprs(args)) =>
// args: Seq[Int]
...
}
/
exprs.map(_.value)
consider using
To directly get the value of all expressions in a sequence
exprs: Seq[Expr[T]]