Drop links or images here to add them to the editor.

Find the last element in the list

?- my_last(X,[a,b,c,d]).
X = d