Created
October 15, 2014 15:52
-
-
Save memememomo/1263f1718b1b4f465e1f to your computer and use it in GitHub Desktop.
do式とif式 ref: http://qiita.com/uchiko/items/3d4760d3c7a011e6bd53
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
| sat p = do x <- item | |
| if p x then return x else failure |
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
| sat p = do x <- item | |
| if p x then return x else failure |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment