Skip to content

Instantly share code, notes, and snippets.

@yuanmai
Created March 5, 2012 01:15
Show Gist options
  • Save yuanmai/1975771 to your computer and use it in GitHub Desktop.
Save yuanmai/1975771 to your computer and use it in GitHub Desktop.
Agent Examples
(def x (agent 0))
@x ; 0
(send x inc)
@x ; 1
(send x + 10)
@x ; 11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment