Skip to main content

Or

A class in Root.Township, Alta.Intelligence.

Logical OR in the unused Prolog-like logic engine: yields every result of the left side, then every result of the right.

Constructors​

MemberWhat it is
Or(Predicate left, Predicate right)Creates an Or from left and right.

Methods​

MemberWhat it is
override Result Resolve(Result a, Result b)Always null. Or overrides evaluation so it never combines results.
override string ToString()Shows the two sides joined with |.
protected override IEnumerable<Result> EvaluateInternal(KnowledgeHolder knowledgeHolder) (iterator)Yields all left results, then all right results.
protected override Predicate FromCompoundPart(CompoundPart compoundPart)Rebuilds an Or from bound parts when variables are substituted.