Functions supporting various ID concerns.
Functions supporting various ID concerns.
(id-string->id type id)When forms are routed to their ID is in the URL as a string. This converts IDs in such a string format to the given type (which must be a RAD type name that supports IDs like :uuid, :int, or :long).
When forms are routed to their ID is in the URL as a string. This converts IDs in such a string format to the given type (which must be a RAD type name that supports IDs like :uuid, :int, or :long).
(new-uuid)(new-uuid v)Without args gives random UUID. With args, builds UUID based on input.
Without args gives random UUID. With args, builds UUID based on input. - If v is an int (in CLJC), it will generate a fixed UUID starting with FFF...and ending in that number. - If v is a uuid, it is just returned. - If v is non-nil it will be used as a string to generate a UUID (can fail). - If v is missing, you will get a random uuid.
(select-keys-in-ns m nspc)Returns a version of m where only those keys with namespace nspc are kept.
Returns a version of `m` where only those keys with namespace `nspc` are kept.
(valid-uuid-string? s)Returns true if the given string appears to be a valid UUID string.
Returns true if the given string appears to be a valid UUID string.
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 |