 
 (avg [1 2 3 4 5])
 
-(defn get-helper [k col]
-  (get col k))
-
 (defn avg-cast-popularity [id]
   (go
    (let [cast (->> (movie-cast id)
                    <!
-                   (get-helper "cast")
-                   (clojure.core/map (partial get-helper "id"))
+                   :cast
+                   (clojure.core/map :id)
                    (clojure.core/map people-by-id)
                    (async/map vector)
                    <!
-                   (clojure.core/map (partial get-helper "popularity"))
+                   (clojure.core/map :popularity)
                    avg)]
      cast)))
 


(ns cljs-examples
  (:require [cljs.core.async :refer [chan put! take! timeout] :as async]
            [goog.net.XhrIo])
  (:require-macros [cljs.core.async.macros :refer [go]]))



(def canvas (.getElementById js/document "canvas"))


(def colors ["#FF0000"
             "#00FF00"
