Skip to content

Instantly share code, notes, and snippets.

@alandipert
Created August 5, 2014 19:54
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 alandipert/06fee94ac5c3a98a751e to your computer and use it in GitHub Desktop.
Save alandipert/06fee94ac5c3a98a751e to your computer and use it in GitHub Desktop.
(defc c1 1)
(defc c2 2)
(defc c3 3)
(defc= show (print c1 c2 c3))
;;; show happens once with initial values 1 2 3
(doseq [c [c1 c2 c3]]
(set! (.-state c) (inc (.-state c))))
;;; we've modified input cells but show not triggered
(propagate! c1)
;;; show happens with 2 3 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment