home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 12
/
CD_ASCQ_12_0294.iso
/
maj
/
666
/
quicksrt.prx
< prev
next >
Wrap
Text File
|
1991-10-04
|
177b
|
8 lines
// quicksort: seq -> seq
quicksort(s;x) { if(len s<2) return s;
x=s[1];
return quicksort([y:y<-s;y<x]) conc [x]
conc quicksort([y:y<-tl s;y>=x]);};
end