Back

oxford (clj)

(source)

function

(oxford coll & {:keys [maximum-display truncate-noun number-format], :or {maximum-display 4, number-format str}})
Converts a list of items to a human-readable string, such as "apple, pear, and 2 other fruits". Options: :maximum-display - the maximum number of items to display before identifying the remaining count (default: 4) :truncate-noun - the string used to identify the type of items in the list, e.g., "fruit" - will be pluralized if necessary :number-format - function used to format the number of additional items in the list (default: `str`)

Examples