Created
August 19, 2015 12:33
-
-
Save shigemk2/cff84195c95afe06f444 to your computer and use it in GitHub Desktop.
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
| import qualified Data.Foldable as F | |
| main = do | |
| print $ foldr (*) 1 [1,2,3] | |
| print $ F.foldr (*) 1 [1,2,3] | |
| print $ F.foldl (+) 2 (Just 9) | |
| print $ F.foldr (||) False (Just True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment