Can you fold over solutions?

Mark Green <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <CAPX1d7LH7d0hKpT_OPMmPW_whpcATEoOF9x3eBXmaJjqDK9GsQ@mail.gmail.com>
Hi,

Is there any predicate which acts like a cross between foreach and foldl?
In other words, it iterates through all solutions to a goal (like foreach)
but can carry bindings from one iteration of the iterated predicate to the
next (like foldl)?

Thanks,
Mark.
-------------- next part --------------
HTML attachment scrubbed and removed
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.