(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 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 |