def Ty.put_opt

bend-kube-runtime@0.2.0.0 · src/typed.bend:145

import bend-kube-runtime@0.2.0.0/src/typed.bend as Typed
import Base
import bend-kube-runtime@0.2.0.0/src/json.bend as J

145def Ty.put_opt(~A: Data, ~enc: A -> J.Json, key: String, m: Maybe<&2, A>) -> Maybe<&2, J.KV>:
146  match m:
147    case Some{x}:
148      Some{J.KV{key, enc(x)}}
149    case None{}:
150      None{}

Uses (4)

Used by (0)

No other definition uses this definition.