cbor.key-string
- description
- A key of a CBOR map as a string (text as it is, integers in decimal, otherwise empty)
- type
Fn(key: @cbor.item) -> String
- expression
fn(key$0) => match $0 { #text(text$1) => $1, #integer(number$2) => @std.number-to-string(value: $2), _ => "" }- visibility
- public
cbor.key-string (project cbor, branch main, snapshot 5bvML2Im-osGmgnKJsp0FwmfSMONephnrgdWQboV3-E) id: h2O1ITq8679twPNr5nWtOUAlBQGi2Mmjgt-iAZPtgTc content hash: Tzvgjk8HdXPbD39aAGec5kNU16KbpNsLq31GuUVRYgI