Liking cljdoc? Tell your friends :D

hara.string.path


*default-seperator*clj


containsclj

(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
raw docstring

joinclj

(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
raw docstring

make-patternclj

(make-pattern s)

creates a regex pattern from a string

creates a regex pattern from a string
raw docstring

path-nsclj

(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"
raw docstring

path-ns?clj

(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
raw docstring

path-rootclj

(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"
raw docstring

path-root?clj

(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
raw docstring

path-stemclj

(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"
raw docstring

path-stem-vecclj

(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"]
raw docstring

path-stem-vec?clj

(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
raw docstring

path-stem?clj

(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
raw docstring

path-vecclj

(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"]
raw docstring

path-vec?clj

(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
raw docstring

splitclj

(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"]
raw docstring

valclj

(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"
raw docstring

val?clj

(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
raw docstring

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

× close