| |||||||||||
| creates a compound term or determines functor and arity.
functor(+CompoundTerm, -Functor, -Arity)
| |||||||||||
| functor(f(a,b,c),F,A). | Succeeds with substitution F <- f, A <- 3. |
| functor(X,functor,3). | Succeeds with substitution X <- functor(_1, _2, _3). |
| functor(f(X),f,2). | Fails. |
This predicate is part of the ISO-Prolog Standard.
| document: http://www.ifcomputer.co.jp/MINERVA/Manual/Reference/Predicates/term_creat_decomp/functor/print_en.html published 2008/9/1 update 1998/8/7 (c) 1996-2006 IF Computer Japan | ||||||||
|
| Back> |
|