Liking cljdoc? Tell your friends :D
Clojure only.

lucid.insight.format


format-labelclj

(format-label var {:keys [label skip] :as format})

formats label of according to specification (format-label 'x.y/z {:label :full}) => "x.y/z"

(format-label 'x.y/hello {:label :name}) => "hello"

(format-label 'x.y.z/hello {:label :partial}) => "y.z/hello"

(format-label 'x.y.z/hello {:label :partial :skip 2}) => "z/hello"

formats label of according to specification
(format-label 'x.y/z {:label :full})
=> "x.y/z"

(format-label 'x.y/hello {:label :name})
=> "hello"

(format-label 'x.y.z/hello {:label :partial})
=> "y.z/hello"

(format-label 'x.y.z/hello {:label :partial :skip 2})
=> "z/hello"
raw docstring

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

× close