We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,514 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Prolog Alternative to Findall

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

3
Contributors
3
Replies
1 Month
Discussion Span
3 Months Ago
Last Updated
13
Views
Diogo Martinho
Light Poster
34 posts since Apr 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 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? :-)

rubberman
Posting Maven
2,696 posts since Mar 2010
Reputation Points: 378
Solved Threads: 316
Skill Endorsements: 53

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

rubberman
Posting Maven
2,696 posts since Mar 2010
Reputation Points: 378
Solved Threads: 316
Skill Endorsements: 53

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

pyTony
pyMod
Moderator
6,330 posts since Apr 2010
Reputation Points: 879
Solved Threads: 989
Skill Endorsements: 27

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page generated in 0.5036 seconds using 2.5MB