Quicksort
Mississippi College
Computer Science
Dr. Bennet
CSc 404
FORTRAN
Algol
Ruby
Tom's Lisp
List Examples
Quicksort
Diff
Prolog
; A cute quicksort. (define (sort lst) (cond ((null? lst) nil) ((null? (cdr lst)) lst) (#t (append (sort (select (lambda (x) (<= x (car lst))) (cdr lst))) (cons (car lst) ()) (sort (select (lambda (x) (> x (car lst))) (cdr lst))) ) ) ) )
[download]