E ae pessoal,
Não estou conseguindo rodar o seguinte código:
(update estoque :mochila inc)O erro retornado é:
CompilerException java.lang.RuntimeException: Unable to resolve symbol: update in this context, compiling:(aula3/aula5.clj:18:1)
O que achei curioso é que meu clojure.core não possui o símbolo update, porém possui o seguinte símbolo:
(defn update-in
  "'Updates' a value in a nested associative structure, where ks is a
  sequence of keys and f is a function that will take the old value
  and any supplied args and return the new value, and returns a new
  nested structure.  If any levels do not exist, hash-maps will be
  created."
  {:added "1.0"
   :static true}
  ([m [k & ks] f & args]
   (if ks
     (assoc m k (apply update-in (get m k) ks f args))
     (assoc m k (apply f (get m k) args)))))Alguém teve problemas com o símbolo update e soube solucionar ?