CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 06:50:20 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=85af96e5f14259bdf911cedbcf9e120a8b81916499230ffe8ac7da552840c942a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22FCVaYAkEAaTsNfGIRijhYcJ2Ao6QiIUY%22%3B%7D; HttpOnly; Path=/
cf-ray: 98cc6c312f3d6f7a-BLR
primitive collatz - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module CollatzConjecture (collatz) where
- collatz :: Integer -> Maybe Integer
- collatz n
- | n <= 0 = Nothing
- | n == 1 = Just 0
- | even n = addStep $ collatz (n `div` 2)
- | otherwise = addStep $ collatz (3 * n + 1)
- where
- addStep Nothing = Nothing
- addStep (Just x) = Just (x + 1)
Advertisement
Add Comment
Please, Sign In to add comment
-
⭐✅ Trading Profit Method ✅ NEVER SEEN BEFORE...
JavaScript | 3 sec ago | 0.24 KB
-
✅⭐ Make huge profits on trading ⭐⭐ 4
JavaScript | 5 sec ago | 0.24 KB
-
⭐ Instant BTC Profit Method ✅ NEVER SEEN BEFO...
JavaScript | 12 sec ago | 0.24 KB
-
⭐✅ MAKE $2500 IN 15 MIN⭐⭐⭐ T
JavaScript | 18 sec ago | 0.24 KB
-
⭐✅ MAKE $2000 INSTANTLY ✅ NEVER SEEN BEFORE ⭐...
JavaScript | 21 sec ago | 0.24 KB
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ V
JavaScript | 30 sec ago | 0.24 KB
-
⭐ Free Crypto Method ✅ NEVER SEEN BEFORE ⭐⭐⭐
JavaScript | 30 sec ago | 0.24 KB
-
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ D
JavaScript | 42 sec 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