def Owners.collect
import bend-lint-pack@0.1.1.0/common.bend as Commonimport Base
import bend-lint-pack@0.1.1.0/vendor/lint.bend as Lint
54# A fold_facts step: records each fact's owner.
55def Owners.collect(acc: Owners, +f: Lint.Fact) -> IO(Owners):
56 do IO<Owners>:
57 v : Lint.View <- Lint.view(f)
58 return Owners.add(acc, v)