Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
(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
You can’t perform that action at this time.