def Entries.get.put
import bend-trace-context@0.2.0.0/trace_context.bend as TraceContextimport Base
1947# The value of `entry` when its key matched, or the result for the rest.
1948def Entries.get.put(entry: StateEntry, rest: Maybe<&2, StateValue>, hit: Bool) -> Maybe<&2, StateValue>:
1949 match hit:
1950 case True{}:
1951 Some{StateEntry.value(entry)}
1952 case False{}:
1953 rest