bin :: (Int->Int->Int) -> String -> String -> String code example Example: python binary string to int >>> int('11111111', 2) 255