def array.items

ezx@1.11.0.0 · src/ws/up.bend:107

import ezx@1.11.0.0/src/ws/up.bend as Up
import Base
import ezx@1.11.0.0/src/toml/toml.bend as T

107# texts written as a TOML array of strings
108def array.items(ts: List<&2, String>) -> String:
109  match ts:
110    case []:
111      ""
112    case +hd <> []:
113      T.quote(hd)
114    case +hd <> tl:
115      T.quote(hd) ++ ", " ++ array.items(tl)

Uses (4)

Used by (1)