IsMinusOne

com.phasmidsoftware.number.expression.expr.IsMinusOne
object IsMinusOne

Object IsMinusOne is used to identify and extract instances of Expression that represent -1.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
IsMinusOne.type

Members list

Value members

Concrete methods

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

Extractor method to determine if the given Expression represents the value -1.

Extractor method to determine if the given Expression represents the value -1.

Value parameters

expr

the input Expression to be checked and extracted

Attributes

Returns

an Option[Expression] containing the matched expression if it represents -1, or None if it does not match