Skip to main content

CompoundPart

A class in Root.Township, Alta.Intelligence.

A list of terms (a first term and the rest) in the AI's logic system, used when unifying compounds.

Constructors​

MemberWhat it is
CompoundPart(ITerm first, ITerm[] remaining)Creates a CompoundPart from bindings and all.
CompoundPart(Dictionary<ITerm, ITerm> bindings, ITerm[] all)Creates a CompoundPart from bindings and all.

Properties​

MemberWhat it is
ITerm First { get; private set; }First term.
ITerm[] Remaining { get; private set; }The other terms.

Methods​

MemberWhat it is
override bool Contains(ITerm other)True if it is the term, its first term is, or any remaining term contains it.
override string ToString()The terms joined with commas.

Used in​

Members of other types that take, return or hold a CompoundPart: