Add tags

Add tags to the following comment

リストで書くのはめんどくさいので。

1
2
3
4
5
6
b :: Integer -> Integer
b 0 = 0
b x = b' x + 2 * b (div x 10)
    where b' x = if odd x then 1 else 0

main = print $ b 01101001  -- 10

Add tags

The input will be splited to tags with space.

Index

Feed

Other

Link

Pathtraq

loading...