def is_str

ezmcp@0.1.0.0 · src/openapi.bend:216

import ezmcp@0.1.0.0/src/openapi.bend as Openapi
import Base
import emerging-ezjson@1.2.0.0/main.bend as Json
import emerging-ezjson@1.2.0.0/src/value.bend as Value

216# whether a value is the string `str`
217def is_str(val: Value.Json, +str: String) -> Bool:
218  is_str.of(Json.as_str(val), str)

Uses (5)

Used by (3)