Created
July 18, 2017 20:26
-
-
Save deque-blog/c6cc1d1b710c60c91b9593a9c35fdb71 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
sumLengthUntil : Int -> Step () Int String | |
sumLengthUntil maxValue totalLength str = | |
pure $ if totalLength <= maxValue | |
then Continue (sumLength totalLength str) | |
else Done totalLength |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment