Skip to main content

Plus

A class in Root.Township, Alta.Intelligence.

A combining operator in the unused Prolog-like logic engine. It behaves exactly like And: agreeing results with weightings multiplied.

Constructors​

MemberWhat it is
Plus(Predicate left, Predicate right)Creates a Plus from left and right.

Methods​

MemberWhat it is
override Result Resolve(Result a, Result b)Combines two results if their bindings don't conflict, multiplying weightings. Returns null on conflict.
override string ToString()Shows the two sides joined with +.
protected override Predicate FromCompoundPart(CompoundPart compoundPart)Rebuilds a Plus from bound parts when variables are substituted.