=> (require '[yang.lang :as y])
=> (def m {:moo 42})
=> (y/assoc-if m :zoo 12)
{:moo 42, :zoo 12}
;; nil is not a value: hence skipped
=> (y/assoc-if m :zoo 12 :moo nil)
{:moo 42, :zoo 12}
;; false is a value: hence not skipped
=> (y/assoc-if m :zoo 12 :moo nil :boo false)
{:moo 42, :zoo 12, :boo false}
filter-kv & map->keys-as-path (0af41e8 thanks to @sirmspencer)strip-margin function (4f92fd4 thanks to @danielmiladinov)Can you improve this documentation? These fine people already did:
anatoly, tolitius & AnatolyEdit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs | 
| ← | Move to previous article | 
| → | Move to next article | 
| Ctrl+/ | Jump to the search field |