ExpressionEq

com.phasmidsoftware.number.expression.expr.ExpressionEq
object ExpressionEq

Cats Eq instance for Expression providing structural equality. Two expressions are equal if they are structurally identical.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def eqByValue(implicit eagerEq: Eq[Eager]): Eq[Expression]

Alternative Eq instance that compares expressions based on their evaluated values. This is useful when you want to know if two different expressions represent the same value. Note: This may not be suitable for all use cases as it materializes the expressions.

Alternative Eq instance that compares expressions based on their evaluated values. This is useful when you want to know if two different expressions represent the same value. Note: This may not be suitable for all use cases as it materializes the expressions.

Attributes

Givens

Givens

Eq instance for Expression that performs structural equality comparison. This compares the structure of expressions rather than their evaluated values. For commutative operations (Sum, Product), operand order doesn't matter.

Eq instance for Expression that performs structural equality comparison. This compares the structure of expressions rather than their evaluated values. For commutative operations (Sum, Product), operand order doesn't matter.

Attributes