I have a list of facts in Prolog. Say:
L = [mother(sue), father(sam), mother(rachel), mother(izzie), father(leo)]
I want to separate them into two lists
L1 = [mother(sue), mother(rachel), mother(izzie)]
L2 = [father(sam), father(leo)]
How do I do that in Prolog