return all occurances in a list? : PROLOG
This is a discussion on return all occurances in a list? within the PROLOG forums in Programming Languages category; how can I implement "allo" as follows: given: link(a,b). link(a,c). lind(a,d). ?- allo(a,X). X=[b,c,d]. thanks in advance....
![]() |
| | LinkBack | Thread Tools |
|
#1
| |||
| |||
| given: link(a,b). link(a,c). lind(a,d). ?- allo(a,X). X=[b,c,d]. thanks in advance. |
|
#2
| |||
| |||
| I found the answer using: findall(Y, link(a,Y), X) but thanks anyways, this forum is DEAD! |
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How do I count occurances in an array | usenet | labview | 8 | 04-22-2008 01:40 PM |
| how to get # of occurances of a character in a given string | usenet | Perl | 3 | 09-16-2007 07:21 AM |
| [JS/CS2] Create Index for All Occurances of a list of Words | usenet | Adobe Indesign | 2 | 01-18-2007 01:03 PM |
| counting word occurances | usenet | Perl | 2 | 06-01-2005 09:49 PM |
| Counting occurances | usenet | PHP | 1 | 08-13-2000 08:42 PM |
All times are GMT -5. The time now is 08:35 AM.




