(format-code {:keys [lang code comments? html? query service cdn] :as options})
(group-by-starts-with string-coll starts-with)
Given a substring and a collection of strings, shift all occurences of strings beginning with that substring to immediately follow the first occurence ex: (group-by-starts-with [orange apple banana applepie apricot applejuice] apple) => [orange apple applepie applejuice banana apricot]
Given a substring and a collection of strings, shift all occurences of strings beginning with that substring to immediately follow the first occurence ex: (group-by-starts-with [orange apple banana applepie apricot applejuice] apple) => [orange apple applepie applejuice banana apricot]
(head-contains? sub-coll coll)
True if a collection's head contains all elements of another collection (sub-coll) (coll-head-contains? [1 2] [1 2 3 4]) => true Strings are collections of characters, so this function also mimics clojure.string/starts-with? (coll-head-contains? apple applejuice) => true
True if a collection's head contains all elements of another collection (sub-coll) (coll-head-contains? [1 2] [1 2 3 4]) => true Strings are collections of characters, so this function also mimics clojure.string/starts-with? (coll-head-contains? apple applejuice) => true
(replace-join-views string-coll starts-with)
Remove all occurances of strings in a collection that begin with a value while replacing the first occurance of the match with the value ex: (replace-join-views [orange apple applepie applejuice banana apricot] apple) => [orange apple banana apricot]
Remove all occurances of strings in a collection that begin with a value while replacing the first occurance of the match with the value ex: (replace-join-views [orange apple applepie applejuice banana apricot] apple) => [orange apple banana apricot]
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close