/ Published in: Other

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
binToDec l = sum $ map (2^) $ findIndices (==1) $ reverse l
Comments
