Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jan 21st, 2018
78
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.21 KB
| None
|
0
0
raw
download
clone
embed
print
report
import Data.List(permutations)
import Data.List(sort)
result = head $ drop 999999 perms
where perms = sort . map toNum . permutations
$ [0..9]
toNum = foldl1 (\acc x -> acc * 10 + x)
Add Comment
Please,
Sign In
to add comment
Public Pastes
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 12 min ago | 0.39 KB
Untitled
C | 18 min ago | 4.99 KB
Generated Thing
Lua | 38 min ago | 0.06 KB
fieldsOfView
JavaScript | 1 hour ago | 1.00 KB
tlco.lua
Lua | 1 hour ago | 0.46 KB
Practicality of life
R | 1 hour ago | 9.94 KB
advanced_mega_registry_toggle
Python | 1 hour ago | 8.39 KB
Untitled
C++ | 2 hours ago | 0.40 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!