Skip to content

Instantly share code, notes, and snippets.

@homam
Created October 19, 2014 13:03
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 homam/0b6e7a3129a8a2bee607 to your computer and use it in GitHub Desktop.
Save homam/0b6e7a3129a8a2bee607 to your computer and use it in GitHub Desktop.
current-state = null
next = (state) ->
current-sate := state
new-state <- current-state.run!
next new-state
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment