Skip to content

Instantly share code, notes, and snippets.

@fffej
Created June 30, 2009 07:26
Show Gist options
  • Select an option

  • Save fffej/138052 to your computer and use it in GitHub Desktop.

Select an option

Save fffej/138052 to your computer and use it in GitHub Desktop.
(defn run-machine
"Run the virtual machine with the decoded instructions."
[vm ops update-input]
(reduce
(fn [v [op args]]
(increment-counter (op v args)))
(update-input vm)
ops))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment