Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

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).
 
PREVIOUS NEXT
Tagged: #prolog #check #element #lists
ADD COMMENT
Topic
Name
9+5 =