Hi, learning clojure and came across some code discussing swing and a code
for a flipper as below
(defn new-flipper []
(agent {:total 0, :heads 0,
:running false,
:random (java.util.Random.)}))
(defn calculate [state]
(if (:running state)
(do (send *agent*
Discussed here:
https://groups.google.com/forum/#!topic/clojure/1qUNPZv3OYA/discussion
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated -