ExpressionBiFunction

com.phasmidsoftware.number.expression.expr.ExpressionBiFunction
See theExpressionBiFunction companion class

Companion object for the ExpressionBiFunction class.

Provides an extractor method to deconstruct ExpressionBiFunction instances into their associated function and name.

Attributes

Companion
class
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def unapply(f: ExpressionBiFunction): Option[((Eager, Eager) => Eager, String, Option[Eager], Option[Eager])]

Extracts the components of an ExpressionBiFunction instance. CONSIDER returning other Valuables.

Extracts the components of an ExpressionBiFunction instance. CONSIDER returning other Valuables.

Value parameters

f

the binary function of type ((Valuable, Valuable)) => Valuable to be matched and deconstructed.

Attributes

Returns

an Option containing a tuple of the function (Valuable, Valuable) => Valuable and its associated name String if the input matches an ExpressionBiFunction, or None otherwise.