select-keys

functionsince v0.0-927 clojure.core/select-keysEdit
(select-keys map keyseq)

Details:

Returns a map containing only those entries in map whose key is in keys.


Source docstring:
Returns a map containing only those entries in map whose key is in keys
Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(defn select-keys
  [map keyseq]
    (loop [ret {} keys (seq keyseq)]
      (if keys
        (let [key   (first keys)
              entry (get map key ::not-found)]
          (recur
           (if (not= entry ::not-found)
             (assoc ret key entry)
             ret)
           (next keys)))
        (-with-meta ret (meta map)))))