Created
September 9, 2018 17:29
-
-
Save jjant/2af760d90d3d06306977864d05b93629 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
| interpret :: b -> (a -> b -> b) -> FreeMonoid a -> b | |
| interpret myZero myCombine Zero = myZero | |
| interpret myZero myCombine (Combine a rest) = | |
| a `myCombine` (interpret myZero myCombine rest) -- a `Combine` (b `Combine` Zero) -> a `myCombine` (b `myCombine` myZero) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment