Skip to content

Instantly share code, notes, and snippets.

@chrismurrph
Created August 12, 2018 23:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrismurrph/f0f3e360caeecce30be385aaf512e8d9 to your computer and use it in GitHub Desktop.
Save chrismurrph/f0f3e360caeecce30be385aaf512e8d9 to your computer and use it in GitHub Desktop.
(let [st @state
desired-player-idents (->> (get st :player-year/by-id)
vals
(filter :ui/desired?)
(map :player-year-id)
(mapv (fn [id] [:player-year/by-id id])))]
(swap! state assoc-in [:desired-labels/by-id :singleton :items] desired-player-idents))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment