Created
August 5, 2018 10:17
-
-
Save truthadjustr/c7fe4cf3c1d017a5b315528d1f2e39d8 to your computer and use it in GitHub Desktop.
understanding Maybe
This file contains 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
mapMaybe (\x -> if x == 1 then Just True else if x == 0 then Just False else Nothing) [1,0,0,1,4,1,1,1,1,5,5,0,0,0] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment