Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Nov 19th, 2023
86
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.18 KB
| None
|
0
0
raw
download
clone
embed
print
report
collatz :: Int -> [Int]
collatz x = if (x == 1)
[]
if even x then
(div x 2) : (collatz (div x 2))
else
3*x+1 : (collatz (3*x+1))
main = print (collatz (4 :: Int))
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
⭐⭐⭐MAKE $9OO INSTANTLY D A⭐⭐
Java | 3 sec ago | 0.10 KB
⭐⭐⭐Free Giftcards Method⭐⭐
Java | 14 sec ago | 0.10 KB
⭐⭐⭐GMAIL Logs (2FA disabled)⭐⭐
Java | 25 sec ago | 0.10 KB
⭐⭐Exchange Exploit⭐⭐ N
JavaScript | 26 sec ago | 0.24 KB
⭐⭐⭐Instant Profit Method⭐⭐
Java | 36 sec ago | 0.10 KB
✅⭐ Make huge profits on trading ⭐⭐ Z
JavaScript | 37 sec ago | 0.24 KB
⭐⭐⭐MAKE $900 INSTANTLY⭐⭐
Java | 48 sec ago | 0.10 KB
⭐⭐⭐Make $15OO in 2O minutesV E⭐⭐
Java | 59 sec ago | 0.10 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!