Thanks. I just added some documentation and two more macros.API Docs user> (use '[reaction.core])
nil
reaction.core> (def-reactive! my-int 1)
#'reaction.core/my-int
reaction.core> (push! my-int inc inc)
nil
reaction.core> @my-int
3
reaction.core> (pop! my-int)
nil
reaction.core> @my-int
2
reaction.
Very clever. Thanks for the contribution.
On Fri, Nov 22, 2013 at 1:20 AM, Kelker Ryan wrote:
> Reaction - https://github.com/runexec/reaction
> *A small reactive programming library for Clojure*
>
> *Usage*
>
> user> (use '[reaction.core])
> nil
> user> (def-reactive! my-int 123)
> #'user/my
Reaction - https://github.com/runexec/reactionA small reactive programming library for ClojureUsageuser> (use '[reaction.core])niluser> (def-reactive! my-int 123)#'user/my-intuser> @my-int123user> (rapply! my-int inc)niluser> @my-int124user> (original-value my-int)123user> @my-int124user> (rapply!