Next: Other Actions, Previous: Other Functions, Up: Built-Ins [Contents][Index]
true()
Always succeeds.
rel true()
false()
Always fails.
rel false()
Term1 = Term2
Succeeds if
Term1andTerm2unify.Any function calls in each argument term are evaluated first using strict evaluation - expression arguments evaluated first - as with every relation call.
rel =(??term, ??term)
Term1 =@ Term2
Succeeds if
Term1andTerm2unify without instantiating variables in Term2 (one-sided unification).
rel =@(??term, @term)
N1 > N2
Succeeds if
N1is numberically greater thanN2.
rel >(!num, !num)
N1 >= N2
Succeeds if
N1is numberically greater than or equal toN2.
rel >=(!num, !num)
N1 < N2
Succeeds if
N1is numberically less thanN2.
rel <(!num, !num)
N1 =< N2
Succeeds if
N1is numberically less than or equal toN2.
rel =<(!num, !num)
X in T
Succeeds if
Xis a term andTis a list, tuple, or set of terms andXis an element ofTor ifXandTare both strings andXis a single character string occurring inT.
rel ?T in !list(T),
??T in !list(??T),
?T in !tuple(T),
??T in !tuple(??T),
?T in !set(T),
?string in !string
string2term(S, T)
Succeeds if
Tis the term obtained by parsing the stringSas a QuLog term.
rel string2term(!string, ??term)This can raise exceptions for the same reasons as
read_term. For example| ?? string2term("f(a)", X). QuLog exception - exception term: string2term_type_error()
this_thread_name(Name)
Succeeds if
Nameis the name of this thread
this_thread_name : rel(?atom)
Next: Other Actions, Previous: Other Functions, Up: Built-Ins [Contents][Index]