Created
August 5, 2014 19:54
-
-
Save alandipert/06fee94ac5c3a98a751e to your computer and use it in GitHub Desktop.
This file contains 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
(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