我需要编制一份log鱼清单。
?- gener_booleans(Xs,3).
Xs = [true, true, true] ;
Xs = [true, true, false] ;
...
Xs = [false, false, false] ;
Here is link to another solution, but i do not know how to apply it to booleans. Get all sets of list in prolog Can anybody help? P.S the amount of lists is 2^N. Thanks!