CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 06:14:12 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=f9ee8d1dd12fda5fe4657757cd90b33b5df435f60a266c9e5cecfdacf31db033a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%223j6fk4UJyrsYkmj7TcrCe7cfmBdGgcEH%22%3B%7D; HttpOnly; Path=/
cf-ray: 98cc37488e38c1b3-BLR
Ninety-Nine Haskell Problems: #2 - Pastebin.com
SHARE
TWEET

Ninety-Nine Haskell Problems: #2
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- one xs = xs !! (length xs - 2)
- two xs = reverse xs !! 1
- three = aux
- where
- aux [x,y] = x
- aux (x:xs) = aux xs
- four xs = aux xs (length xs)
- where
- aux xs 2 = head xs
- aux (x:xs) l = aux xs (l - 1)
- five xs = snd . head . filter (\(x, _) -> x == 1) $ zip (reverse xs) [0 ..]
- six = head . tail . reverse
- seven = last . init
Advertisement
Add Comment
Please, Sign In to add comment
-
⭐✅ Marketplace Glitch ✅ Working ✅ NEVER SEEN...
JavaScript | 2 sec ago | 0.24 KB
-
✅⭐ Make $2500 in 15 minutes ✅ NEVER SEEN BEFO...
JavaScript | 11 sec ago | 0.24 KB
-
⭐ Instant BTC Profit Method ✅ NEVER SEEN BEFO...
JavaScript | 24 sec ago | 0.24 KB
-
⭐ Instant BTC Profit Method ✅ NEVER SEEN BEFO...
JavaScript | 31 sec ago | 0.24 KB
-
⭐✅ MAKE $2000 INSTANTLY ✅ NEVER SEEN BEFORE ⭐...
JavaScript | 40 sec ago | 0.24 KB
-
⭐ Free Crypto Method ✅ NEVER SEEN BEFORE ⭐⭐⭐
JavaScript | 49 sec ago | 0.24 KB
-
✅⭐ Make huge profits on trading ✅ NEVER SEEN...
JavaScript | 59 sec ago | 0.24 KB
-
⭐✅ Marketplace Glitch ✅ Working ✅ NEVER SEEN...
JavaScript | 1 min ago | 0.24 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