Skip to content

Instantly share code, notes, and snippets.

@kumavis
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kumavis/0f51963d03f6ea3ef5b7 to your computer and use it in GitHub Desktop.
Save kumavis/0f51963d03f6ea3ef5b7 to your computer and use it in GitHub Desktop.
nm = NumberMachine()
nm.multiply(2)
nm.add(6)
nm.subtract(3)
nm.multiply(2)
nm(10) //=> 46
nm(0) //=> 6
nm(20) //=> 86
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment