Changes for clojure.core/update-in

Jeff N on Mon, 09 Jul 2012
user=> (def p {:name "James" :age 26})
#'user/p

user=> (update-in p [:age] inc)
{:name "James", :age 27}

;; remember, the value of p hasn't changed!
user=> (update-in p [:age] + 10)
{:name "James", :age 36}

Jeff N on Mon, 09 Jul 2012
user=> (def p {:name "James" :age 26})
#'user/p

user=> (update-in p [:age] inc)
{:name "James", :age 27}

;; remember, the value of p hasn't changed!
user=> (update-in p [:age] + 10)
{:name "James", :age 26}

zkim on Sun, 26 Sep 2010
user=> (def p {:name "James" :age 26})
#'user/p

user=> (update-in p [:age] inc)
{:name "James", :age 27}

;; remember, the value of p hasn't changed!
user=> (update-in p [:age] + 10)
{:name "James", :age 36}

gregg-williams on Mon, 06 Sep 2010
user> (def p {:name "James" :age 26})
#'user/p
user> (update-in p [:age] inc)
{:name "James", :age 27}
;;; remember, the value of p hasn't changed!
user> (update-in p [:age] + 10)
{:name "James", :age 36}