RosettaCodeData/Task/Four-bit-adder/Haskell/four-bit-adder-1.hs

9 lines
134 B
Haskell
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
import Control.Arrow
import Data.List (mapAccumR)
bor, band :: Int -> Int -> Int
bor = max
band = min
bnot :: Int -> Int
bnot = (1-)