com.phasmidsoftware.lascala.Rule
See theRule companion object
sealed trait Rule [T ] extends () => Try [Boolean ]
Trait Rule which extends ()=>Boolean. An alternative name might be TruthValue or just Truth.
Thus the apply method for a Rule will always return true or false, with no input parameter.
A (leaf) rule is essentially an expression of the form: variable predicate where predicate is an operator followed by an expression.
A rule can be represented for any type T, including String. However, if you want to be able to evaluate the truth value of a rule, then either (1) T extends Valuable, or (2) an implicit map from String to T is made available
Type parameters
T
the underlying type of this Rule
Attributes
Companion
object
Graph
Reset zoom Hide graph Show graph
Supertypes
trait () => Try [Boolean ]
class Object
trait Matchable
class Any
Known subtypes
Self type
Members list
Conjunctive combination of self with another Rule.
Conjunctive combination of self with another Rule.
Associates to the right.
Self will not be evaluated if c evaluates as false
Value parameters
r
the other Rule
Attributes
Returns
a Rule which is the conjunctive (and) combination of r with self
Conjunctive combination of self with another Rule.
Conjunctive combination of self with another Rule.
Associates to the left.
Value parameters
r
the other Rule (r will not be evaluated if self evaluates as false)
Attributes
Returns
a Rule which is the conjunctive (and) combination of self with r
Disjunctive combination of self with another Rule.
Disjunctive combination of self with another Rule.
Associates to the left.
Value parameters
r
the other Rule (r will not be evaluated if self evaluates as true)
Attributes
Returns
a Rule which is the disjunctive (or) combination of self with r
Disjunctive combination of self with another Rule.
Disjunctive combination of self with another Rule.
Associates to the right.
Self will not be evaluated if r evaluates as true
Value parameters
r
the other Rule
Attributes
Returns
a Rule which is the disjunctive (or) combination of r with self
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
Returns
a string representation of the object.
Definition Classes
Function0 -> Any
Inherited from:
Function0
Applies the body of this function to the arguments.
Applies the body of this function to the arguments.
Attributes
Returns
the result of function application.
Inherited from:
Function0