Author(s): Daniel Cabeza, Manuel Hermenegildo.
Version: 1.10#7 (2006/4/26, 19:22:13 CEST)
Version of last change: 1.9#191 (2003/12/19, 16:47:39 CET)
This module provides basic term manipulation.
term_basic)term_basic)
Usage: X = Y
* ISO *
X and Y unify.
basic_props:native/1)
Usage: arg(+ArgNo, +Term, ?Arg)
* ISO *
ArgNo of the term Term is Arg.
ArgNo is an integer.
(basic_props:int/1)
basic_props:native/1)
Usage: functor(?Term, ?Name, ?Arity)
* ISO *
Term has name Name and arity Arity.
Name is an atom.
(basic_props:atm/1)
Arity is a number.
(basic_props:num/1)
basic_props:native/1)
Usage: ?Term =.. ?List
* ISO *
Term comprise the list List.
List is a list.
(basic_props:list/1)
basic_props:native/1)
Usage: copy_term(Term, Copy)
* ISO *
Copy is a renaming of Term, such that brand new variables have been substituted for all variables in Term. If any of the variables of Term have
attributes, the copied variables will have copies of the attributes as well. It behaves as if defined by:
:- data 'copy of'/1.
copy_term(X, Y) :-
asserta_fact('copy of'(X)),
retract_fact('copy of'(Y)).
basic_props:native/1)
Usage: C(?S1, ?Terminal, ?S2)
S1 is connected by the terminal Terminal to S2. Internally used in DCG grammar rules. Defined as if by the single clause: 'C'([X|S], X, S).
basic_props:native/1)
Go to the first, previous, next, last section, table of contents.