std.string.coerce
from-string
added in 3.0
(from-string string type)(from-string string type opts)converts a string to an object
(from-string “a” clojure.lang.Symbol) => ’a
(from-string “std.string” clojure.lang.Namespace) => (find-ns ’std.string)
path-separator
added in 3.0
(path-separator type)returns the default path separator for an object
(path-separator clojure.lang.Namespace) => “.”
(path-separator clojure.lang.Keyword) => “/”
str:compare
added in 3.0
(str:compare f)wraps a function so that it can compare any two string-like inputs
((str:compare =) :hello ’hello) => true
str:op
added in 3.0
(str:op f)(str:op f return)wraps a string function such that it can take any string-like input
((str:op str false) :hello ’hello) => :hellohello
((str:op str true) :hello ’hello) => “hellohello”
to-string
added in 3.0
(to-string string)converts an object to a string
(to-string :hello/world) => “hello/world”
(to-string ns) => “std.string.coerce-test”