Ops.person_of.go: def of near-v-framework@0.4.0.0 Import: import near-v-framework@0.4.0.0/domain/architecture/environment/agreement/ops.bend as Ops Lines 35-41 of near-v-framework@0.4.0.0/domain/architecture/environment/agreement/ops.bend: https://jend.leeeet.dev/read.txt?path=near-v-framework@0.4.0.0/domain/architecture/environment/agreement/ops.bend&start_line=35&end_line=41 import Base import near-v-framework@0.4.0.0/domain/architecture/environment/agreement/type.bend as G # The key of the person with this identity (case insensitive), or "" when none has it. def person_of.go(xs: List<&2, G.Person>, +identity: String) -> String: match xs: case []: "" case G.Person{key, +id} <> rest: Bool.pick(String, same_identity(identity, id), key, person_of.go(rest, identity)) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.pick https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=near-v-framework@0.4.0.0/domain/architecture/environment/agreement/ops.bend&name=same_identity https://jend.leeeet.dev/definition.txt?path=near-v-framework@0.4.0.0/domain/architecture/environment/agreement/type.bend&name=Person