Answers for "prolog check if element in different lists are same"

0

prolog check if element in different lists are same

common_list([X],[X]).
common_list([X|Tail],Y):- member(X,Y).
common_list([X|Tail],Y):- common_list(Tail,Y).
Posted by: Guest on December-17-2020

Code answers related to "prolog check if element in different lists are same"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language