Skip to content

Instantly share code, notes, and snippets.

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