Next: bagof or setof
Up: Obtaining More Solutions
Previous: Obtaining More Solutions
- findall/3
- The List contains all instances of the variable for which the goal
has been found to be true
- Each element of the list will be a copy of the term or variable, and there
will be one copy for each different solution to the query - otherwise an empty
List is returned
- The solutions provided in List are NOT sorted - and appear in the
same order as they do in the program
- The solutions in List are not necessarily unique - as it is
possible to have duplicate entries in the database, it is possible to
have duplicate entries in the solution List.
Omer F Rana
Thu Feb 20 20:05:17 GMT 1997