; sort1.scm - simple basic example with sort (require-library "functio.ss") (define (less? x y) (string (symbol->string x) (symbol->string y))) (mergesort '(e d c b a) less?) (quicksort '(e a c b d) less?) (mergesort '(5 4 3 2 1) (lambda (x y) (< x y))) (quicksort '(4 2 3 5 1) (lambda (x y) (< x y)))
Text file Source (historic): geocities.com/soho/square/3472
geocities.com/soho/squaregeocities.com/soho
(to report bad content: archivehelp @ gmail)
|
|
|
|
|