Index of a specific element in a multidimensional list using Prolog
I'm trying to figure out if there is a way to find a specific index of an element in a multidimensional list, for example
How do I find the index '5' -   or get the value  ? Is this possible if the size of the list is unknown? Or is there a built-in predicate?
source to share