def setting

bolt@1.26.0.0 · src/config.bend:99

import bolt@1.26.0.0/src/config.bend as Config
import Base

99# a def's name and the string it returns, at its line, as a setting
100def setting(name: Maybe<&2, String>, word: Maybe<&2, String>, +line: U32) -> List<&2, Setting>:
101  match name word:
102    case Some{n} Some{w}:
103      [Setting{n, w, line}]
104    case _a _b:
105      []

Uses (5)

Used by (1)