def has.in

cswap-bend-cli@0.1.0.0 · setwrite.bend:135

import cswap-bend-cli@0.1.0.0/setwrite.bend as Setwrite
import Base
import cswap-bend-cli@0.1.0.0/json.bend as Json

135def has.in(sec: Maybe<&2, Json.Json>, key: String) -> Bool:
136  match sec:
137    case Some{j}:
138      Maybe.is_some(&2, Json.Json, Json.get(key, j))
139    case None{}:
140      False{}

Uses (6)

Used by (2)