Liking cljdoc? Tell your friends :D
Clojure only.

clj-github.utils


assoc-someclj

(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}
```
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close