def strings

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

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

16# strings as JSON strings
17def strings(ss: List<&2, String>) -> List<&2, J.Json>:
18  match ss:
19    case Nil{}:
20      Nil{}
21    case Con{h, t}:
22      J.JStr{h} <> strings(t)

Uses (3)

Used by (1)