Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
undreren
· 5y ago · 0 comments
Haskell has “otherwise” as a built in constant that equals true. It reads better in some cases.
f n | odd n = 3 * n + 1 | otherwise = n \\ 2
Comments
No comments yet.
Better HN