(contains-in? m k-path)
checks whether the nested key exists in a map
checks whether the nested key exists in a map
(deep-merge-with f & maps)
Like merge-with, but merges maps recursively, appling the given fn only when there's a non-map at a particular level. (deepmerge + {:a {:b {:c 1 :d {:x 1 :y 2}} :e 3} :f 4} {:a {:b {:c 2 :d {:z 9} :z 3} :e 100}}) -> {:a {:b {:z 3, :c 3, :d {:z 9, :x 1, :y 2}}, :e 103}, :f 4}
Like merge-with, but merges maps recursively, appling the given fn only when there's a non-map at a particular level. (deepmerge + {:a {:b {:c 1 :d {:x 1 :y 2}} :e 3} :f 4} {:a {:b {:c 2 :d {:z 9} :z 3} :e 100}}) -> {:a {:b {:z 3, :c 3, :d {:z 9, :x 1, :y 2}}, :e 103}, :f 4}
(expand-home path)
If path
begins with a tilde (~
), expand the tilde to the value
of the user.home
system property. If the path
begins with a
tilde immediately followed by some characters, they are assumed to
be a username. This is expanded to the path to that user's home
directory. This is (naively) assumed to be a directory with the same
name as the user relative to the parent of the current value of
user.home
.
If `path` begins with a tilde (`~`), expand the tilde to the value of the `user.home` system property. If the `path` begins with a tilde immediately followed by some characters, they are assumed to be a username. This is expanded to the path to that user's home directory. This is (naively) assumed to be a directory with the same name as the user relative to the parent of the current value of `user.home`.
(home)
(home user)
With no arguments, returns the current value of the user.home
system
property. If a user
is passed, returns that user's home directory. It
is naively assumed to be a directory with the same name as the user
located relative to the parent of the current value of user.home
.
With no arguments, returns the current value of the `user.home` system property. If a `user` is passed, returns that user's home directory. It is naively assumed to be a directory with the same name as the `user` located relative to the parent of the current value of `user.home`.
(map->properties m)
convert map to java.util.Properties preserving hierarchy
convert map to java.util.Properties preserving hierarchy
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close