Prolog program to find the nth element of a list.
domains x = integer l = integer* predicates find(l,n) clauses find([X|L],0). write("Nth element ",X). find([X|L],N) :- N1 = N-1, find(L,N1)