Twelve statements: Difference between revisions
Content deleted Content added
→{{header|Haskell}}: bug fix, change to 1/0 for easier reading, add indices of incorrect answers |
|||
Line 24:
Shows answers with 1 for true, followed by list of indices of incorrect elements each set of 1/0s (index is 0-based).
<lang haskell>
tf = mapM (\_ -> [1,0])
wrongness b =
statements = [ (==12) . length,
Line 43:
4 ⊂ [0..10]
] where
(s ⊂
(a →
testall s n = [(b, w) | b <- tf s, w <- [wrongness b s], length w == n]
|