name = 'quick_sort/2' slug = 'sort a list using quicksort' description = '''\

quick_sort(L, SL): the list SL contains the elements of L sorted in non-decreasing order. Use the predicate pivoting/4 to implement quicksort.

?- quick_sort([2,3,1,5,4], L).
  L = [1,2,3,4,5].
''' hint = {}