def sects.of
import ezx@1.11.0.0/src/fetch/world.bend as Worldimport 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))