Unify a PlTerm with a PlTerm
Declaration Syntax
C# | Visual Basic | Visual C++ | F# |
public bool Unify( string atom )
Public Function Unify ( atom As String ) As Boolean
public: bool Unify( String^ atom )
member Unify : atom : string -> bool
Parameters
- atom (String)
- A string to unify with
Return Value
Boolean
true or false
true or false
Examples
Copy | |
---|---|
public void UnifyTermVar_doc() { PlTerm t1 = new PlTerm("x(A, 2)"); PlTerm t2 = new PlTerm("x(1, B)"); Assert.IsTrue(t1.Unify(t2)); Assert.AreEqual("x(1,2)", t1.ToString()); Assert.AreEqual("x(1,2)", t2.ToString()); } |
Assembly: SwiPlCs (Module: SwiPlCs.dll) Version: 1.1.60601.0 (1.1.60601.0)