Return to Snippet

Revision: 11386
at February 3, 2009 21:22 by aflatter


Initial Code
binToDec l = sum $ map (2^) $ findIndices (==1) $ reverse l

Initial URL

                                

Initial Description

                                

Initial Title
Convert binary to decimal in Haskell

Initial Tags
convert

Initial Language
Other