Jump to content

Four bit adder: Difference between revisions

m
m (deleting excess spaces)
Line 720:
bnot = (1-)</lang>
Gates built with basic ones:
<lang hskellhaskell>nand, xor :: Int -> Int -> Int
nand = (bnot.).band
xor a b = uncurry nand. (nand a &&& nand b) $ nand a b</lang>
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.