# ---------------------------------------------------------------------------- # Sort # # Paul Griffioen 2012-2012 # ---------------------------------------------------------------------------- module sort include heapsort, quicksort public procedure main(args) = test(global heapsort); test(global quicksort) procedure test(sorter) = let array := array_from_list(global some_numbers) in do call(sorter, array, fun (x,y) x