I'm trying to write a query that will make sure an element is present in a list of lists, I tried this implementation:
membernested(E,[H|T]):-member(E,H).
membernested(E,[H|T]):-membernested(E,[T]).
but Prolog won't answer the query, any thoughts?