Text.text.value: def of ezsys@0.1.0.0 Import: import ezsys@0.1.0.0/src/text.bend as Text Lines 42-49 of ezsys@0.1.0.0/src/text.bend: https://jend.leeeet.dev/read.txt?path=ezsys@0.1.0.0/src/text.bend&start_line=42&end_line=49 import Base # the value a key names: the first pair with that key def text.value(pairs: text.Pairs(), +key: String) -> Maybe<&2, String>: match pairs: case Nil{}: None{} case Con{(name, value), rest}: text.value.pick(String.eq(name, key), value, _u => text.value(rest, key)) Uses (7): 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=Sigma https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.eq https://jend.leeeet.dev/definition.txt?path=ezsys@0.1.0.0/src/text.bend&name=text.Pairs https://jend.leeeet.dev/definition.txt?path=ezsys@0.1.0.0/src/text.bend&name=text.value.pick