How to change a list into list of lists

Answered in Sorting predicates in PROLOG

1 Like