Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (def app-state (atom {:showing :all :todos {} }))
- (aset js/window "benchmark1"
- (fn [e]
- (dotimes [i 200]
- (let [todos (:todos @app-state)
- new-todo {:id (guid)
- :title i
- :completed false}]
- (swap! app-state update-in [:todos] conj new-todo)))
- (println @app-state)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement