The Miranda Programming Language
QuickSort in Miranda
Click below to go directly to a specific section:
Description | Source Code
| Program Notes
Description
This example implements QuickSort using Miranda.
Source Code
sort [] = []
sort (a:x) = sort [ b | b <- x; b <= a ]
++ [a] ++
sort [ b | b <- x; b > a ]
Program Notes
Due to the unavailability of a Miranda compiler, an executable program
is not available.
Last modified: 04:19 PM on 12/16/1997