Created
December 20, 2013 08:49
-
-
Save pedrofurla/8052119 to your computer and use it in GitHub Desktop.
Improvements?
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
| class Misty m where | |
| banana :: (a -> m b) -> m a -> m b | |
| unicorn :: a -> m a | |
| -- Exercise 6 | |
| -- Relative Difficulty: 3 | |
| -- (use banana and/or unicorn) | |
| furry' :: (a -> b) -> m a -> m b | |
| furry' f mm = banana (unicorn . f) mm | |
| --furry' f = banana (unicorn . f) | |
| --furry' f mm = banana (\x → unicorn (f x)) mm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment