weavejester / medley

A lightweight library of useful Clojure functions
Eclipse Public License 1.0
865 stars 66 forks source link

Maps join functions #22

Closed analyticbastard closed 7 years ago

analyticbastard commented 7 years ago

Functions to join map in a similar way to SQL

(let [a {:a 1 :b 2}
      b {1 "a" 3 "c"}]
  (m/inner-join a b))
=> {:a "a"}

Supports transitive relationshipts

weavejester commented 7 years ago

Thanks for the patch, but I think these functions are a little too specialised for Medley.