Comparand

com.phasmidsoftware.lascala.parser.rpn.Comparand
See theComparand companion class
object Comparand

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Comparand.type

Members list

Value members

Concrete methods

def apply[X](s: String)(implicit evidence$1: Orderable[X], lookup: String => Option[X]): Evaluable[X]

Construct a Comparand[X} and return it as an Evaluable[X]

Construct a Comparand[X} and return it as an Evaluable[X]

Type parameters

X

the underlying type

Value parameters

lookup

the lookup function to evaluate variables

s

the String from which the Comparand is to be built: usually the RHS of a predicate

Attributes

Returns

an Evaluable

def evaluate[X](w: String)(implicit evidence$1: Orderable[X], lookup: String => Option[X]): Try[X]

Construct a Comparand from w and evaluate it.

Construct a Comparand from w and evaluate it.

Type parameters

X

the underlying type

Value parameters

lookup

the lookup function to evaluate variables

w

the String to be evaluated: usually the RHS of a predicate

Attributes

Returns

a Try[X] corresponding to the value of the comparand