PROLOG newbie here. I have the following list:
list([im204, im209, im210, im212, im214, im216, im217, im218]).
I need a schedule(A,B,C)
predicate which will return all possible combinations/divsions of the elements above in three subsets A, B, C.
i.e:
?- schedule(A,B,C).
A = [im204,im209,im210],
B = [im212,im214,im216],
C = [im217,im218] ;
A = [im204,im209,im210],
B = [im212,im214,im216],
C = [im218,im217] ;
(...)
Can someone show me a simple implementation?