RFC 4122 UUID type.

Implementation is provided for UUID variant 1 0, versions 3 and 4. UUIDs can also be created from their canonical string representation or from integer(s).

A data reader literal #uuid is available for a convenient UUID creation.

Uuid

Available since version 1.0 (view source)

TYPE

A type for UUIDs.

See also: uuid?, uuid

from-bytes

Available since version 1.0 (view source)

not referred automatically

Usage:
  • (from-bytes bytes)

Type signature:
  • (Any) → Uuid

Returns UUID of variant 1 0 and version 3 from byte-array, which may be a host byte array or a collection of bytes.

See also: random, uuid

random

Available since version 1.0 (view source)

not referred automatically

Usage:
  • (random)

Type signature:
  • () → Uuid

Returns UUID of variant 1 0 and version 4.

See also: from-bytes, uuid

uuid

Available since version 1.0 (view source)

Usage:
  • (uuid val)

  • (uuid high low)

Type signatures:
  • ((U Uuid ICharSequence Integer+)) → Uuid

  • (Integer+ ⨯ Integer+) → Uuid

Returns UUID from its canonical string representation, from one integer or from two at most 64 bits wide integers.

See also: uuid?, random, from-bytes

uuid?

Available since version 1.0 (view source)

not referred automatically

Usage:
  • (uuid? x)

Type signature: Predicate

Returns true if object x is an instance of Uuid type, false otherwise.

See also: Uuid, uuid