moved reflection to the yang.java
namespace
making most of yang babashka compatible
=> (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 is a website building & hosting documentation for Clojure/Script libraries
× close