weavejester / medley

A lightweight library of useful Clojure functions
Eclipse Public License 1.0
870 stars 67 forks source link

dissoc-in variable args #23

Closed decoursin closed 5 years ago

decoursin commented 7 years ago

dissoc removes one or more keys from a map:

(dissoc {:foo 1 :bar 2 :baz 3} :foo :bar)

medley.core/dissoc-in takes only and exactly one key vector set:

(medley.core/dissoc-in {:a {:b 3 :c 4 :d 5}} [:a :b] [:a :c])
ArityException Wrong number of args (3) passed to: core/dissoc-in  clojure.lang.AFn.throwArity (AFn.java:429)
weavejester commented 6 years ago

I think this seems like a sound idea.

weavejester commented 5 years ago

Fixed by #25.