plus

abstract operator fun plus(other: Substitution): Substitution

Creates a new Substitution that is the composition (a.k.a. union) of this and other. The composition is not guaranteed to be a Substitution.Unifier, even if both arguments are. In fact, the composition algorithm performs the following checks:

Regardless of its type, the resulting Substitution will contain the tags of both input Substitutions.


abstract fun plus(other: Substitution, tagsMerger: TagsOperator): Substitution

Creates a new Substitution that is the composition (a.k.a. union) of this and other. The composition is not guaranteed to be a Substitution.Unifier, even if both arguments are. In fact, the composition algorithm performs the following checks:

Regardless of its type, the resulting Substitution will contain the tags attained by merging the input Substitutions' tags via tagsMerger.