def query.go

mlbend-huggingface@0.1.1.0 · main.bend:129

import mlbend-huggingface@0.1.1.0/main.bend as MlbendHuggingface
import Base

129# The rest of a query string, each pair behind an "&".
130def query.go(pairs: List<&2, String>, acc: String) -> String:
131  match pairs:
132    case Nil{}:
133      acc
134    case Con{h, t}:
135      query.go(t, String.append(acc, String.append("&", h)))

Uses (3)

Used by (1)