PASTEBIN
| #1 paste tool since 2002
create new paste
tools
api
archive
real-time
faq
PASTEBIN
create new paste
trending pastes
sign up
login
my alerts
my settings
my profile
Got an iPhone or iPad? We have a brand new Pastebin App for both devices, and it's totally free!
Click here to download the new Pastebin App for iOS
.
Public Pastes
Untitled
0 sec ago
Untitled
1 sec ago
Untitled
3 sec ago
Untitled
5 sec ago
Untitled
6 sec ago
Untitled
9 sec ago
Untitled
10 sec ago
Untitled
11 sec ago
Untitled
By: a guest on Jan 10th, 2012 | syntax:
Haskell
| size: 0.19 KB | hits: 63 | expires: Never
download
|
raw
|
embed
|
report abuse
Copied
qsort
(
x:xs
)
=
qsort kleinergl
++
[
x
]
++
qsort groesser
where
kleinergl
=
[
y
|
y
<-
xs
,
y
<=
x
]
groesser
=
[
y
|
y
<-
xs
,
y
>
x
]
create a
new version
of this paste
RAW Paste Data
qsort (x:xs) = qsort kleinergl ++ [x] ++ qsort groesser where kleinergl = [y | y <- xs, y <= x] groesser = [y | y <- xs, y > x]