Advertisement
Guest User

Untitled

a guest
Oct 4th, 2014
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1.  
  2.  
  3. (def app-state (atom {:showing :all :todos {} }))
  4.  
  5. (aset js/window "benchmark1"
  6. (fn [e]
  7. (dotimes [i 200]
  8. (let [todos (:todos @app-state)
  9. new-todo {:id (guid)
  10. :title i
  11. :completed false}]
  12. (swap! app-state update-in [:todos] conj new-todo)))
  13. (println @app-state)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement