def when
import bend-kit-llm@0.13.0.1/llm.bend as Llmimport Base
import bend-kit-json@0.7.0.0/json.bend as Json
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
56def when(on: Bool, x: Bytes.Bytes & Json.Val, xs: List<&1, Bytes.Bytes & Json.Val>) -> List<&1, Bytes.Bytes & Json.Val>:
57 match on:
58 case True{}:
59 Con{x, xs}
60 case False{}:
61 xs