I would like to write this:
paths( Result ) :-
findall( B, f(B) , Result ).
f( B ) :-
f1( B ),
f2( B ).
in just one line. So basically something like:
paths( Result ) :-
findall( B, f1(B) AND f2(B), Result ).
I don't know how to express 'AND' in a goal statement. Is this possible at all?