I am trying to define a function in prolog that takes arguments of the form combination(3,[a,b,c,d],L) , the result returns
My implementation is as follows:
Z is select(X,argList),
L is Z,
unknown(X,[_|L],R) :- unknown(X,L,R).
The unknown predicate behaves as follows:
![enter image description here]