Multiple

com.phasmidsoftware.number.expression.expr.Multiple
See theMultiple companion trait
object Multiple

An extractor for the Multiple trait, allowing deconstruction into its sequence of terms.

This object provides a pattern matching mechanism for Multiple, enabling access to its underlying sequence of sub-expressions.

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Multiple.type

Members list

Value members

Concrete methods

def unapply(m: Multiple): Option[(ExpressionBiFunction, Seq[Expression])]

Deconstructs a Multiple instance into its components if it matches a binary function or an aggregate structure.

Deconstructs a Multiple instance into its components if it matches a binary function or an aggregate structure.

This extractor enables pattern matching on Multiple to access its underlying binary function or aggregation operation along with the associated sequence of sub-expressions.

Value parameters

m

the Multiple instance to be deconstructed.

Attributes

Returns

an Option containing a tuple with the ExpressionBiFunction and a sequence of Expression terms if the input matches a BiFunction or Aggregate structure; otherwise, None.