def nums

bolt@1.27.0.0 · src/lsp/proto.bend:308

import bolt@1.27.0.0/src/lsp/proto.bend as Proto
import Base
import emerging-ezjson@1.2.0.0/src/value.bend as J

308# numbers as JSON numbers
309def nums(ns: List<&2, U32>) -> List<&2, J.Json>:
310  match ns:
311    case Nil{}:
312      Nil{}
313    case Con{h, t}:
314      J.JNum{U32.show(h)} <> nums(t)

Uses (4)

Used by (1)