Rewrite-edn: utility lib on top of rewrite-clj with common operations to update EDN while preserving whitespace and comments.
conj: (str (r/update (r/parse-string "{:a [1 2 3]}") :a r/conj 1)) ;;=> "{:a [1 2 3 1]}" (@zerg000000)fnil: (str (r/update (r/parse-string "{:a [1 2 3]}") :b (r/fnil r/conj []) 1)) ;;=> "{:a [1 2 3] :b [1]}"assoc-in, assoc no longer throw NullPointerException (@lread)keys and get-in (@witek)getassocmap-vals to map-keysassoc-inInitial release
Can you improve this documentation? These fine people already did:
Michiel Borkent, Lee Read, Albert Lai & Witoslaw KoczewskiEdit 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 |