Hi,
I'm new here and with Prolog.
I have done some searching for several hours, including going over some useful threads in this forum, yet did not manage to find an example of the somewhat simple task in arrays: find the index of a given element in a list,
meaning:
index(List, Element, Index) where Index will be assigned with the index of element Element in list List.
Thanks in advance,
Avishay
I'm new here and with Prolog.
I have done some searching for several hours, including going over some useful threads in this forum, yet did not manage to find an example of the somewhat simple task in arrays: find the index of a given element in a list,
meaning:
index(List, Element, Index) where Index will be assigned with the index of element Element in list List.
Thanks in advance,
Avishay