Changes between Version 22 and Version 23 of Clojure Client Tutorial
- Timestamp:
- Aug 4, 2011 3:19:24 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Clojure Client Tutorial
v22 v23 199 199 {{{ 200 200 client.core=> (defn get-location-of 201 202 201 [quagent] 202 (client->server send-and-get quagent :now :current-location nil)) 203 203 #'client.core/get-location-of 204 204 }}} … … 254 254 255 255 {{{ 256 client.core=> (defn get-location-of [quagent] (client->server send-and-get quagent :now :current-location nil (fn [prev reply] reply))) 256 client.core=> (defn get-location-of [quagent] 257 (client->server send-and-get 258 quagent 259 :now 260 :current-location 261 nil 262 (fn [prev reply] 263 reply))) 257 264 #'client.core/get-location-of 258 265 }}} … … 268 275 269 276 {{{ 270 client.core=> (defn get-location-of [quagent] (client->server send-and-get quagent :now :current-location nil (fn [prev {:keys [data]}] (vec(map #(Double/parseDouble %) data))))) 277 client.core=> (defn get-location-of [quagent] 278 (client->server send-and-get 279 quagent 280 :now 281 :current-location 282 nil 283 (fn [prev {:keys [data]}] 284 (vec (map #(Double/parseDouble %) data))))) 271 285 #'client.core/get-location-of 272 286 }}}