prolog findall\ code example Example: how to use findall in prolog ?- findall(X,g(a,X),Bag). Bag = [].