def with_q

bend-kit-url@0.4.1.0 · url.bend:500

import bend-kit-url@0.4.1.0/url.bend as Url
import Base

500def with_q(path: String, q: String, has_q: Bool) -> String:
501  match has_q:
502    case True{}:
503      path ++ "?" ++ q
504    case False{}:
505      path

Uses (3)

Used by (1)