How to check if a map is a subset of another in clojure?

Viewed 3906

I would like to write a function that checks if a map is a subset of another.

An example of usage should be:

(map-subset? {:a 1 :b 2} {:a 1 :b 2 :c 3})
=> true

Is there a native way to do that?

6 Answers
Related