1,105,447 Community Members

Prolog Alternative to Findall

Member Avatar
Diogo Martinho
Light Poster
41 posts since Apr 2010
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Hey,
I'm writting this topic to ask you guys if there is an alternative to findall in Prolog that allows me to search not for all solutions but for a X number of solutions instead.
I'm kind of new to this language so I'd like to ask for your help.
Thanks

Member Avatar
rubberman
Senior Poster
3,999 posts since Mar 2010
Reputation Points: 513 [?]
Q&As Helped to Solve: 501 [?]
Skill Endorsements: 87 [?]
 
0
 

Argh! I haven't written any prolog in probably 25 years. I'll have to do some review of my copy of Clocksin and Mellish (the bible of prolog) and get back to you on this. Are you in a hurry? :-)

Member Avatar
rubberman
Senior Poster
3,999 posts since Mar 2010
Reputation Points: 513 [?]
Q&As Helped to Solve: 501 [?]
Skill Endorsements: 87 [?]
 
0
 

Also, what exactly are you trying to accomplish - describe the problem domain a bit more fully please.

Member Avatar
pyTony
pyMod
6,104 posts since Apr 2010
Reputation Points: 818 [?]
Q&As Helped to Solve: 1,056 [?]
Skill Endorsements: 42 [?]
Moderator
Featured
 
0
 

Like would you not just answer four times more solutions when doing a query? Anyway little Googling gives you:

http://old.nabble.com/Re%3A-find-n-solutions-p27835812.html

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article