Types
Uuid core
fn (): Uuid
fn (version: Int | Null): Uuid
Universally unique identifier. Supports v4 (random) and v7 (time-based).
Example
id Uuid() // Random v4 UUID
id Uuid(4) // Explicit v4 UUID
id Uuid(7) // Time-ordered v7 UUID
id Uuid(null) // Nil UUID (all zeros)
Str(id) // "550e8400-e29b-41d4-a716-446655440000"
Functions
is-uuid core
fn (value: Any): Bool
Return true if value is a valid UUID or UUID string.
Example
is-uuid(Uuid()) // true
is-uuid("550e8400-e29b-41d4-a716-446655440000") // true
is-uuid("not-a-uuid") // false
is-uuid(123) // false