uuid 字段与方法
字段是关于值的一个普通事实,用点号读取,不需要方括号:$value.name。方法会接收参数或执行操作,调用方式为 ->:$value->name(arguments),也可以把值通过管道传入:$value |> name(arguments)。
字段
| 字段 | 类型 | 说明 |
|---|---|---|
.timestamp | date | 生成版本 7 UUID 的时间(UTC),其他版本则为 null。 |
.version | number | UUID 的版本:随机的为 4,时间有序的为 7,自定义的为 8(空 UUID 为 0)。 |
来自 any 的方法
->convert(from?: 'json'|yaml|'csv'|'markdown'|'latex', to?: 'json'|yaml|'csv'|html|'markdown'|'latex', header?: bool, as?: type, headers?: list, indented?: bool)->from(type: 'json'|yaml|'csv'|'markdown'|'latex', header?: bool, as?: type)->is_a(type: word)->is_null()->or(fallback)->to(type: 'json'|yaml|'csv'|html|'markdown'|'latex', headers?: list, indented?: bool)->to_string()->type()