I am trying to create a list of pairs which have a non-null Guard element.
get_only_guarded(L) :-
Guard \= null,
findall([S,D],transition(S,D,_,Guard,_),L).
This is what ive tried but it doesnt seem to work. What would be the correct way?