Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save thedavidmeister/d7efcc2a4aac0c18dfcc7900fc976d45 to your computer and use it in GitHub Desktop.
Save thedavidmeister/d7efcc2a4aac0c18dfcc7900fc976d45 to your computer and use it in GitHub Desktop.
(defn all+status!
"Get all ideas, with the status merged in."
[]
(let [statuses (into ["New"] (map :status (prod-pad.statuses/all!)))
ideas-with-status (map (fn [status] (map (fn [idea] (merge idea {:status status}))
(with-status! status)))
statuses)]
(flatten ideas-with-status)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment