Recent Changes - Search:

yurusanai.de

Quick Sort

Download: 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))

< Hello world | Examples | State transformer monad >

Edit - History - Print - Recent Changes - Search
Page last modified on May 26, 2007, at 10:52 PM