
% find the n'th element of a list, 0-indexed
findNth([H|_], 0, H).
findNth([_|T], N, E) :- integer(N), N > 0, M is N-1, findNth(T, M, E).

