|
|
Fishkill /
Quick SortDownload: quicksort1.f, quicksort2.f The following example program outputs a sorted list of its command line arguments, excluding the program's own name. See the sorting functions section in the standard library description for the library implementation of the quick sort algorithm. main(_,argv) = (qsort * tail)(argv) An equivalent program not using the function composition operator looks like this: main(_,argv) = qsort(tail(argv)) |