Anonymous user
Twelve statements: Difference between revisions
m
→{{header|Haskell}}
(→{{header|Haskell}}: using unicode operators. Might not be a terribly smart thing to do, those who know haskell, feel free to change it) |
|||
Line 22:
Extra credit: also print out a table of near misses, that is, solutions that are contradicted by only a single statement.
=={{header|Haskell}}==
<lang haskell>tf
sumbool = length . filter id
wrongness b = sumbool . zipWith (/=) b . map (
statements = [ (==12) . length,
|