Created
February 24, 2020 23:16
-
-
Save manakuro/7008b79fc93090600fcd44961908cf99 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 | |
|> (_ => add(7, _)) | |
|> (_ => boundScore(0, 100, _)); | |
newScore //=> 57 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment