RosettaCodeData/Task/Four-bit-adder/Haskell/four-bit-adder-1.hs
Ingy döt Net 6f050a029e update
2013-06-05 21:47:54 +00:00

8 lines
134 B
Haskell

import Control.Arrow
import Data.List (mapAccumR)
bor, band :: Int -> Int -> Int
bor = max
band = min
bnot :: Int -> Int
bnot = (1-)