Created
February 24, 2020 23:17
-
-
Save manakuro/fa02b21521bbc255d974db9959f75db9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
let person = { score: 25 }; | |
let newScore = person.score | |
|> double | |
|> (num => add(7, num)) | |
|> (num => boundScore(0, 100, num)); | |
newScore //=> 57 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment