System
public struct System<Atom: Hashable>
A logic System
, defined by a collection of Clauses
, that provides a mechanism for querying
to learn facts about the system.
-
Attempts to unify each term in
goals
with the known clauses in the system, callingonMatch
each time it succeeds to simultaneously unify allgoals
.Declaration
Swift
public func enumerateMatches(goals: [Term<Atom>], onMatch: () throws -> ()) throws
-
Attempts to unify
goal
with the known clauses in the system callingonMatch
each time it succeeds to unify.Declaration
Swift
public func enumerateMatches(goal: Term<Atom>, onMatch: () throws -> ()) throws