 
 (defn app-view
   [app]
-  [:div.container
-   [:h1 "Bracket"]
-   (for [b (:brackets @app) idx (range (count (:brackets @app)))]
-     ^{:key b}
-     [bracket b idx])])
+  (let [i (atom -1)]
+    [:div.container
+     [:h1 "Bracket"]
+     (for [b (:brackets @app)]
+       ^{:key b}
+       [bracket b (swap! i inc)])]))
 
 
 (defn main []

(enable-console-print!)

(defonce app-state* (atom {:text "Hello FooBar!"
                           :brackets [
                                      [[["goo"
                                         "bar"]
                                        ["biz"
                                         "boz"]]


(defn bracket
  [games idx]
  (js/console.log "idx" idx)
  [:ul.col-sm-6
   (for [round (if (even? idx) games (reverse games))]
     ^{:key round}
