A list of values in one attribute, as comma-separated text or as a JSON array of strings.
A list of values in one attribute, as comma-separated text or as a JSON array of strings.
(csv-unrepresentable values)The values that a comma-separated value cannot hold: those with the separator, or with leading or trailing whitespace.
The values that a comma-separated value cannot hold: those with the separator, or with leading or trailing whitespace.
(normalize-value-format s)Normalizes raw value-format string. Falls back to default-value-format if invalid.
Normalizes raw value-format string. Falls back to default-value-format if invalid.
(parse-json-value s)Parses a JSON array of strings into a set of its non-empty strings, kept exactly. Returns nil
when s is not a JSON array of strings, and #{} when s is nil or empty.
Parses a JSON array of strings into a set of its non-empty strings, kept exactly. Returns nil
when `s` is not a JSON array of strings, and #{} when `s` is nil or empty.(parse-value s)Parses a comma-separated value string into a set of trimmed, non-empty strings. nil or empty string yields #{}.
Parses a comma-separated value string into a set of trimmed, non-empty strings.
nil or empty string yields #{}.(parse-value-as value-format s)Parses a value attribute in value-format into {:value set :invalid? boolean}. An invalid
json value yields the empty set.
Parses a value attribute in `value-format` into `{:value set :invalid? boolean}`. An invalid
json value yields the empty set.(serialize-json-value value-set)Serializes a set of values into a sorted JSON array. Empty set yields empty string.
Serializes a set of values into a sorted JSON array. Empty set yields empty string.
(serialize-value value-set)Serializes a set of values into a sorted, comma-separated string. Empty set yields empty string.
Serializes a set of values into a sorted, comma-separated string. Empty set yields empty string.
(serialize-value-as value-format value-set)Serializes a set of values in value-format.
Serializes a set of values in `value-format`.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |