Created
July 28, 2017 14:44
-
-
Save deque-blog/94433cf8d76ff714c2e69acdee64a424 to your computer and use it in GitHub Desktop.
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
transduce (takingWhile (<= 10)) (+) 0 [1..100] | |
> 55 | |
foldl (+) 0 [1..10] | |
> 55 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment