Usage of predicate „functor”
Source: PROLOG str. 48 Wydawnictwo PLJ Warszawa 1991 ISBN 83-85190-63-5
Program source code: functor_predicate.pl
test1 :- functor([a, b, c, d], F, N). test2 :- functor(fakt, F, N). test3 :- functor(X, osoba, 3). test4 :- functor(1 + 5, F, N).