UniFunction

com.phasmidsoftware.number.expression.expr.UniFunction
See theUniFunction companion class
object UniFunction

The UniFunction companion object provides utility methods for initializing and converting UniFunction instances. It includes methods to construct a UniFunction from a MonadicDuple as well as an implicit conversion mechanism.

Attributes

Companion
class
Graph
Supertypes
trait Product
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 apply(md: em.MonadicDuple): UniFunction

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

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

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

Value parameters

md

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

Attributes

Returns

a new UniFunction initialized with the components derived from the given MonadicDuple.

Implicits

Implicits

implicit def convertFromMonadicDuple(md: em.MonadicDuple): UniFunction

LatexRenderer for UniFunction expressions.

LatexRenderer for UniFunction expressions.

Attributes