O object

ValueSeq

extends Object with Serializable

Value sequence of value expressions

Supertypes

Object, Serializable

Members

def 

unapply

[T] ( expr: Expr[Seq[T]] ) ( implicit  valueOf: ValueOfExpr[T] qctx: QuoteContext ) : Option[Seq[T]]

Matches literal sequence of literal constant value expressions and return a sequence of values.

Usage:

Matches literal sequence of literal constant value expressions and return a sequence of values.

Usage:

inline def sum(args: Int*): Int = ${ sumExpr('args) }
def sumExpr(argsExpr: Expr[Seq[Int]])(using QuoteContext): Expr[Int] = argsExpr match
  case ValueSeq(args) =>
    // args: Seq[Int]
    ...
}