Where is the maplist built-in predicate ?

[email protected]
Newsgroups gmane.comp.gnu.prolog.general
Message-ID <[email protected]>
Hello,

I am using GNU Prolog 1.3.1.

I use this code :

% int(?I) : I is an integer
int(z).
int(s(X)) :- int(X).

% odd(?I) : I is an odd integer
odd(s(z)).
odd(s(s(X))) :- odd(X).

% intzodd(?I) : I is an odd integer or zero (z)
intzodd(X) :- X=z.
intzodd(X) :- odd(X).

% listzodd(?L) : L is a list which each element is an odd integer or zero (z)
listzodd(X) :- maplist(intzodd, X).

And I don't find the maplist built-in predicate.

| ?- listzodd([z]).
uncaught exception: error(existence_error(procedure,maplist/2),listzodd/1)

Where is the maplist built-in predicate, please?

Thank you.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.