Created
January 22, 2012 01:52
-
-
Save actsasgeek/1655048 to your computer and use it in GitHub Desktop.
evaluating a string
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 get-user-command [game-state] | |
| (let [ command (read-line) | |
| [function & args] (conj (into [] (.split command " ")) "game-state")] | |
| (do | |
| (println function args) | |
| (apply (symbol function) args)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment