Skip to content

Instantly share code, notes, and snippets.

@manakuro
Created February 24, 2020 23:16
Show Gist options
  • Save manakuro/7008b79fc93090600fcd44961908cf99 to your computer and use it in GitHub Desktop.
Save manakuro/7008b79fc93090600fcd44961908cf99 to your computer and use it in GitHub Desktop.
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