Last active
September 23, 2019 11:52
-
-
Save Koisell/eb7ccab3f72839927b1599d9ba1422b8 to your computer and use it in GitHub Desktop.
Medium recursion schemes
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
List(1, 2, 3).foldl(0)(_ + _) | |
// foldl removes the explicit recursion. | |
// FOLD, REDUCE, ... already are recursion scheme |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment