Core.key_err: def of bend-schema-lib@0.4.1.0 Import: import bend-schema-lib@0.4.1.0/core.bend as Core Lines 471-481 of bend-schema-lib@0.4.1.0/core.bend: https://jend.leeeet.dev/read.txt?path=bend-schema-lib@0.4.1.0/core.bend&start_line=471&end_line=481 import Base # The repeated key as check reports it: at the key's own name, with no step # after it (the second occurrence is not a place in the schema). The test is # passed in rather than read here (a match cannot scrutinize a computed value): # b is key_once(name, r), so nothing is reported exactly when key_once holds, # which is what check_exact needs. def key_err(b: Bool, +name: String) -> Maybe<&2, Err>: match b: case True{}: None{} case False{}: Some{Err{AtField{0n, name} <> Nil{}, RepeatedKey{name}}} Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=bend-schema-lib@0.4.1.0/core.bend&name=Err https://jend.leeeet.dev/definition.txt?path=bend-schema-lib@0.4.1.0/core.bend&name=Step https://jend.leeeet.dev/definition.txt?path=bend-schema-lib@0.4.1.0/core.bend&name=Why