bug-prolog
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

documentation for 'sublist' built-in predicate


From: Rolf Fagerberg
Subject: documentation for 'sublist' built-in predicate
Date: Mon, 4 Jul 2005 14:11:39 +0200

The documentation (at
http://pauillac.inria.fr/~diaz/gnu-prolog/manual/manual043.html#toc165)
for the built-in predicate 'sublist' seems to have the roles of the
two arguments switched around, compared to how the predicate actually
works (in gprolog 1.2.18).

Also, the description could be improved by making explicit that the
elements of a sublist do not have to appear as consecutive elements in
the bigger list (but must be in order, of course).
I.e. Sublist([1,3],[1,2,3]) is true.

 - Rolf Fagerberg





reply via email to

[Prev in Thread] Current Thread [Next in Thread]