This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
count :: [(Bool, Bool)] | |
count = do | |
d1 <- [1..8] | |
d2 <- [1..8] | |
d3 <- [1..8] | |
d4 <- [1..8] | |
let sum3ok = sum([d1, d2, d3]) == 8 | |
let sum4ok = sum([d1, d2, d4]) == 8 | |
return (sum3ok, sum4ok) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Medium resolution: | |
__ __ __ | |
\ \ \ \ / / | |
\ \ \ V / == | |
/ / | | === | |
/_/ |_| | |
Icon: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Medium resolution: | |
__ __ __ | |
\ \ \ \ / / | |
\ \ \ V / == | |
/ / | | === | |
/_/ |_| | |
Icon: |