ProductExpression

com.phasmidsoftware.number.expression.expr.ProductExpression

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def unapply(expr: Expression): Option[(Expression, Expression)]

Extractor for BiFunction(a, b, Product) — returns (a, b) as a tuple suitable for use with CommutativeExtractor subtypes.

Extractor for BiFunction(a, b, Product) — returns (a, b) as a tuple suitable for use with CommutativeExtractor subtypes.

Value parameters

expr

the Expression to match

Attributes

Returns

Some((a, b)) if the expression is a Product, None otherwise