Liking cljdoc? Tell your friends :D

bartleby.util

Internal API for shared functions, like name manipulation

Internal API for shared functions, like name manipulation
raw docstring

author->lastnamesclj/s

(author->lastnames fullnames)

Get last names from BibTeX-formatted author string fullnames

Get last names from BibTeX-formatted author string fullnames
sourceraw docstring

collapse-spaceclj/s

(collapse-space s)

Replace all sequences of whitespace in s with a single space

Replace all sequences of whitespace in s with a single space
sourceraw docstring

format-namesclj/s

(format-names names)

Join a collection of (last-)names as they would naturally be formatted. [A] -> A [A, B] -> A and B [A, B, C] -> A, B and C (no Oxford comma)

Join a collection of (last-)names as they would naturally be formatted.
[A]         ->   A
[A, B]      ->   A and B
[A, B, C]   ->   A, B and C (no Oxford comma)
sourceraw docstring

map-valuesclj/s

(map-values f kvs)

Contruct a new map with all the values of the map kvs passed through f

Contruct a new map with all the values of the map kvs passed through f
sourceraw docstring

normalize-nfcclj/s

(normalize-nfc s)

NFC-normalize the string s

NFC-normalize the string s
sourceraw docstring

re-escapeclj/s

(re-escape s)

Escape any regular expression syntax characters in s such that the result can be embedded in a regular expression, but will only match literally equivalent strings.

Escape any regular expression syntax characters in s such that the result can be
embedded in a regular expression, but will only match literally equivalent strings.
sourceraw docstring

split-fullnameclj/s

(split-fullname fullname)

Parse the string fullname into a vector of [given-names surname], or just [given-names] if no surname is given.

Parse the string fullname into a vector of [given-names surname],
or just [given-names] if no surname is given.
sourceraw docstring

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

× close