It’s almost there:
(my-update-in {:a {:b 1}} [:a :b] inc)
;; => {:a {:b 2}}
(my-update-in {:a {:b 1}} [:a :b] + 3)
;; => throws arity exception
(update-in {:a {:b 1}} [:a :b] + 3)
;; => {:a {:b 4}}
It’s almost there:
(my-update-in {:a {:b 1}} [:a :b] inc)
;; => {:a {:b 2}}
(my-update-in {:a {:b 1}} [:a :b] + 3)
;; => throws arity exception
(update-in {:a {:b 1}} [:a :b] + 3)
;; => {:a {:b 4}}