def all_scalar

cswap-bend-cli@0.1.0.0 · fmt/shape.bend:68

import cswap-bend-cli@0.1.0.0/fmt/shape.bend as Shape
import Base
import cswap-bend-cli@0.1.0.0/json.bend as Json

68def all_scalar(items: Json.Json) -> Bool:
69  match items:
70    case Json.JCons{h, t}:
71      is_scalar(h) && all_scalar(t)
72    case _:
73      True{}

Uses (4)

Used by (1)