BiFunction

com.phasmidsoftware.number.expression.expr.BiFunction
See theBiFunction companion class
object BiFunction

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
BiFunction.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 apply(dt: em.DyadicTriple): BiFunction

Constructs a BiFunction instance based on the provided DyadicTriple. The method converts the left side of the DyadicTriple to a tuple and pairs it with the right side, creating a BiFunction with the extracted components.

Constructs a BiFunction instance based on the provided DyadicTriple. The method converts the left side of the DyadicTriple to a tuple and pairs it with the right side, creating a BiFunction with the extracted components.

NOTE: this is here mostly for historical purposes. We no longer use DyadicTriple except as a convenience in the unit tests.

Value parameters

dt

the DyadicTriple from which the BiFunction will be initialized. The left side of the DyadicTriple is expected to provide a tuple, and the right side will be combined with this tuple to construct the BiFunction.

Attributes

Returns

a new BiFunction initialized with the components derived from the given DyadicTriple.

def asAggregate(b: BiFunction): Option[Expression]

Analyzes the current instance and tries to interpret it as an aggregate expression. An aggregate expression is a specific pattern of nested operations (e.g., sums, products, powers) that can be represented in a more general form.

Analyzes the current instance and tries to interpret it as an aggregate expression. An aggregate expression is a specific pattern of nested operations (e.g., sums, products, powers) that can be represented in a more general form.

The method matches different cases where the current instance can be reduced to an aggregate representation. If such a representation exists, it returns it wrapped in an Option. If the instance does not match any of the aggregate patterns, it returns None.

Attributes

Returns

An Option containing the aggregate representation, or None if the instance cannot be interpreted as an aggregate.

Implicits

Implicits

LatexRenderer for BiFunction expressions.

LatexRenderer for BiFunction expressions.

Attributes

implicit def convertFromDyadicTriple(dt: em.DyadicTriple): BiFunction