I want to use a predicate to find the sublist meet the requirement that contains at least one atomic(not variable).
contain_atomic([[a,c,e],[a,e,D],[D,A,E]],X).
X = [[a,c,e],[a,e,D]].
So far, I can only turn those sublist whose elements are all variables to empty.
all_variable([],[]).
all_variable([A|B],[]):-
\+atomic(A),
all_variable(B,[]).
And what's next? Am I close to success?