Created
July 18, 2017 19:59
-
-
Save deque-blog/f8f5e5b7a37b5b4d8e034d0d83e1a0eb 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
sumLength : StatelessStep Int String | |
sumLength res str = res + fromNat (length str) | |
foldl sumLength 0 ["abc", "de", "", "fghij"] | |
> 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment