def sects.of

ezx@1.11.0.0 · src/fetch/world.bend:85

import ezx@1.11.0.0/src/fetch/world.bend as World
import Base
import ezx@1.11.0.0/src/toml/toml.bend as T

85# a lock's text, as tables; none when there is no lock
86def sects.of(got: Maybe<&2, String>) -> List<&2, T.Sect>:
87  match got:
88    case None{}:
89      []
90    case Some{text}:
91      T.sects(T.parse(text))

Uses (6)

Used by (1)