ClojureDocs

导航

命名空间

assoc-in

clojure.core

自 1.0 起提供 (来源)
  • (assoc-in m [k & ks] v)
Associates a value in a nested associative structure, where ks is a
sequence of keys and v is the new value and returns a new nested structure.
If any levels do not exist, hash-maps will be created.