Changes between Version 22 and Version 23 of Clojure Client Tutorial


Ignore:
Timestamp:
Aug 4, 2011 3:19:24 PM (13 years ago)
Author:
kedwar10
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Clojure Client Tutorial

    v22 v23  
    199199{{{
    200200client.core=> (defn get-location-of
    201                  [quagent]
    202                  (client->server send-and-get quagent :now :current-location nil))
     201                [quagent]
     202                (client->server send-and-get quagent :now :current-location nil))
    203203#'client.core/get-location-of
    204204}}}
     
    254254
    255255{{{
    256 client.core=> (defn get-location-of [quagent] (client->server send-and-get quagent :now :current-location nil (fn [prev reply] reply)))
     256client.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)))
    257264#'client.core/get-location-of
    258265}}}
     
    268275
    269276{{{
    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)))))
     277client.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)))))
    271285#'client.core/get-location-of
    272286}}}