champs et méthodes de uuid
Un champ est une information simple sur la valeur, lue avec un point et sans crochets : $value.name. Une méthode prend des arguments ou effectue un traitement, et s'appelle avec -> : $value->name(arguments), ou avec la valeur transmise par un pipe : $value |> name(arguments).
Champs
| Champ | Type | Description |
|---|---|---|
.timestamp | date | Moment de création d'un UUID version 7, en UTC, ou null pour les autres versions. |
.version | number | La version de l'UUID : 4 pour les UUID aléatoires, 7 pour ceux ordonnés dans le temps, 8 pour les personnalisés (0 pour l'UUID nul). |
Méthodes de tout type (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()