Created
June 30, 2009 07:26
-
-
Save fffej/138052 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (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