Explorer

cbor.map-get

description
The value of the key if cbor is a map
type
Fn(cbor: @cbor.item, key: String) -> Union{#none, #some(@cbor.item)}
expression
fn(cbor$0, key$1) =>
  match $0 {
    #map(entries$2) =>
      @cbor.entries-get(entries: $2, key: $1, index: 0),
    _ =>
      #none
  }
visibility
public
cbor.map-get (project cbor, branch main, snapshot 5bvML2Im-osGmgnKJsp0FwmfSMONephnrgdWQboV3-E)
id: k-mx8xZEDhVtfMAdAXfJoiBIb7pp3_r4IczNHnPjfY0
content hash: ElnXqMVIIH8pIhOH7k4RDYTinus9YBaj6jcAVlnvuls