Click to See Complete Forum and Search --> : zero2one in Haskell need help


chronicle
09-16-2002, 01:12 PM
Hi

I want to do a script that changes all the zeros to ones how can I do this in Haskell? The type definition should be zero2one :: Int -> Int,
test: zero2one 200 should be 211 :: Int

Thanks!
CS