can you implement the following function in Prolog?
Find the last element of a list.
Example:
?- my_last(X,[a,b,c,d]).
X = d Provide your response in exactly 2 paragraphs (separated nearby paragraphs with 3 aterisk symbols ***).
user