Rivoreo Source Code Repositories
src.rivoreo.one
/
compiler-explorer
/
8f1468753a1ad490d225716a6d3f4b1b5fc0e5cd
/
.
/
examples
/
clean
/
qsort.icl
blob: ebd7533c918fd52f98522b9fe9c7a6db00010684 [
file
] [
log
] [
blame
] [
raw
]
module
test
import
StdEnv
qsort
::
[
Int
]
->
[
Int
]
qsort
[]
=
[]
qsort
[
p
:
l
]
=
(
qsort
[
x \\ x
<-
l
|
x
<
p
])
++[
p
]
++(
qsort
[
x \\ x
<-
l
|
x
>=
p
])
Start
::
[
Int
]
Start
=
qsort
[
3
,
5
,
1
,
4
,
2
]