uuid¶
Note
Depending on how Minilang is built, uuid might need to be imported using import: uuid("util/uuid").
meth address(UUID: uuid): addressReturns an address view of
UUID.import: uuid("util/uuid") address(uuid()) :> <16:8AC5E79E44884DECAF1C132B1BE24C26>
type uuidA UUID.
meth uuid(Address: address): uuid | errorReturns a new UUID with the bytes of
Address.meth uuid(String: string): uuid | errorParses
Stringas a UUID, returning an error ifStringdoes not have the correct format.import: uuid("util/uuid") uuid("5fe1af82-02f9-429a-8787-4a7c16628a02") :> 5fe1af82-02f9-429a-8787-4a7c16628a02 uuid("test") :> error("UUIDError", "Invalid UUID string")
meth uuid(): uuidReturns a new random UUID.
import: uuid("util/uuid") uuid() :> 7d72577a-e47b-4b89-879b-926956b8a403
meth (Arg₁: uuid) <> (Arg₂: uuid)TBD
meth (Buffer: string::buffer):append(UUID: uuid)Appends a representation of
UUIDtoBuffer.