def held

bolt@1.27.0.0 · src/rules/pedantic/index.bend:31

import bolt@1.27.0.0/src/rules/pedantic/index.bend as Index
import Base
import bolt@1.27.0.0/src/syntax/tree.bend as Tree
import bolt@1.27.0.0/src/rules/table.bend as Table

31# a fixed table (src/rules/table.bend) is left alone
32def held(+list: Bool, coll: Tree.Node, +fixed: List<&2, String>) -> Bool:
33  match list:
34    case False{}:
35      False{}
36    case True{}:
37      Table.owns(coll, fixed)

Uses (5)

Used by (1)