(assoc-some m k v)
(assoc-some m k v & kvs)
Assoc[iate] if the value is not nil.
Examples:
(assoc-some {:a 1} :b false)
;=>
{:a 1 :b false}
(assoc-some {:a 1} :b nil)
;=>
{:a 1}
Assoc[iate] if the value is not nil. Examples: ``` (assoc-some {:a 1} :b false) ;=> {:a 1 :b false} (assoc-some {:a 1} :b nil) ;=> {:a 1} ```
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close