Simple implementation of the prolog member/2 predicate, that checks whether an element is present in a list.
Implement a predicate called my_member/2 that checks whether an element Element is a member of the list List.
% my_member(Element,List).
my_member(Element,[Element|_]).
my_member(Element,[_|T]):-
my_member(Element,T).
?- my_member(3,[a,3,4,b,3]).
true ;
true ;
false