(contains k subk)
check that a path contains the subkey
(path/contains :hello/world :hello) => true
(path/contains "a/b/c/d" "a/b/c") => true
check that a path contains the subkey (path/contains :hello/world :hello) => true (path/contains "a/b/c/d" "a/b/c") => true
(join ks)
(join ks sep)
joins a sequence of elements into a path seperated value
(path/join ["a" "b" "c"]) => "a/b/c"
(path/join '[a b c] '-) => 'a-b-c
joins a sequence of elements into a path seperated value (path/join ["a" "b" "c"]) => "a/b/c" (path/join '[a b c] '-) => 'a-b-c
(make-pattern s)
creates a regex pattern from a string
creates a regex pattern from a string
(path-ns k)
returns the path namespace of the string/keyword/symbol
(path/path-ns "a/b/c/d") => "a/b/c"
returns the path namespace of the string/keyword/symbol (path/path-ns "a/b/c/d") => "a/b/c"
(path-ns? k)
(path-ns? k ns)
check for the path namespace of the string/keyword/symbol
(path/path-ns? "a/b/c/d" "a/b/c") => true
check for the path namespace of the string/keyword/symbol (path/path-ns? "a/b/c/d" "a/b/c") => true
(path-root k)
returns the path root of the string/keyword/symbol
(path/path-root "a/b/c/d") => "a"
returns the path root of the string/keyword/symbol (path/path-root "a/b/c/d") => "a"
(path-root? k pk)
check for the path root of the string/keyword/symbol
(path/path-root? "a/b/c/d" "a") => true
check for the path root of the string/keyword/symbol (path/path-root? "a/b/c/d" "a") => true
(path-stem k)
returns the path stem of the string/keyword/symbol
(path/path-stem "a/b/c/d") => "b/c/d"
returns the path stem of the string/keyword/symbol (path/path-stem "a/b/c/d") => "b/c/d"
(path-stem-vec k)
returns the path stem vector of the string/keyword/symbol
(path/path-stem-vec "a/b/c/d") => ["b" "c" "d"]
returns the path stem vector of the string/keyword/symbol (path/path-stem-vec "a/b/c/d") => ["b" "c" "d"]
(path-stem-vec? k kv)
check for the path stem vector of the string/keyword/symbol
(path/path-stem-vec? "a/b/c/d" ["b" "c" "d"]) => true
check for the path stem vector of the string/keyword/symbol (path/path-stem-vec? "a/b/c/d" ["b" "c" "d"]) => true
(path-stem? k ks)
check for the path stem of the string/keyword/symbol
(path/path-stem? "a/b/c/d" "b/c/d") => true
check for the path stem of the string/keyword/symbol (path/path-stem? "a/b/c/d" "b/c/d") => true
(path-vec k)
returns the path vector of the string/keyword/symbol
(path/path-vec "a/b/c/d") => ["a" "b" "c"]
returns the path vector of the string/keyword/symbol (path/path-vec "a/b/c/d") => ["a" "b" "c"]
(path-vec? k pv)
check for the path vector of the string/keyword/symbol
(path/path-vec? "a/b/c/d" ["a" "b" "c"]) => true
check for the path vector of the string/keyword/symbol (path/path-vec? "a/b/c/d" ["a" "b" "c"]) => true
(split k)
(split k re)
splits a sequence of elements into a path seperated value
(path/split :hello/world) => [:hello :world]
(path/split "a/b/c/d") => '["a" "b" "c" "d"]
splits a sequence of elements into a path seperated value (path/split :hello/world) => [:hello :world] (path/split "a/b/c/d") => '["a" "b" "c" "d"]
(val k)
returns the val of the string/keyword/symbol
(path/val "a/b/c/d") => "d"
returns the val of the string/keyword/symbol (path/val "a/b/c/d") => "d"
(val? k z)
check for the val of the string/keyword/symbol
(path/val? "a/b/c/d" "d") => true
check for the val of the string/keyword/symbol (path/val? "a/b/c/d" "d") => true
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close