I have a record:
(defrecord Point [x y])
(def p (Point. 1 2))
Now I want to extract just the map from the record. These ways get the job done. Are these good ways? Are there better ways?
(into {} (concat p))
(into {} (map identity p))
(apply hash-map (apply concat p))
I was hoping there might be a cleaner way, perhaps built-in to the notion of a record.