forked from fpinscala/fpinscala
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I needed a lot more detail in order to understand the solution to foldLeftViaFoldRight, so I added foldLeftViaFoldRight_1 which is functionally the same, but with additional details (longer variable names, intermediate types and variables, comments, and a sample run). There may be a better intermediate step in the sample run to illustrate how the delay functions are combined. I also may have swapped Normal and Applicative order evaluation by mistake at some point in that comment, but it still helped me visualize how this might play out. I thought I'd offer it here in case other people might find it helpful too.
- Loading branch information
Glen K. Peterson
committed
Feb 24, 2015
1 parent
15dc4ab
commit 9b04ac4
Showing
1 changed file
with
102 additions
and
1 deletion.
There are no files selected for viewing
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