| |||||||||||
| creates a list with all solutions of a goal according to a given pattern.
findall(+Term, +Goal, ?TermList)
findall/3 unifies TermList with a list with as many
instantiations of Term as Goal has solutions of Term.
Arguments
Term term Goal goal TermList list
Examples
part_of(house, window). part_of(house, door). part_of(house, room). part_of(room, table). part_of(room, floor). part_of(floor, tile).
Standard
This predicate is part of the ISO-Prolog Standard.
See also | |||||||||||
| |||||||||||
| Back> |
|