Skip to content

Instantly share code, notes, and snippets.

@halgari
Created July 12, 2013 13:05
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 halgari/5984313 to your computer and use it in GitHub Desktop.
Save halgari/5984313 to your computer and use it in GitHub Desktop.
(def philostate
(let [c (chan)]
(go (loop [state {:socrates :thinking
:plato :thinking
:hickey :thinking
:sussman :thinking
:stroustrup :thinking}]
(let [f (<! c)
new-state (f state)]
(println new-state)
(recur new-state))))
c))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment