Phc.field_go: def of bend-collections@1.0.0.0 Import: import bend-collections@1.0.0.0/src/crypto/argon2/phc.bend as Phc Lines 304-312 of bend-collections@1.0.0.0/src/crypto/argon2/phc.bend: https://jend.leeeet.dev/read.txt?path=bend-collections@1.0.0.0/src/crypto/argon2/phc.bend&start_line=304&end_line=312 import Base # The characters before the first '$' and what follows it, or None (d says s starts with '$'). def field_go(s: String, d: Bool) -> Maybe<&2, Cut>: match s d: case SNil{} _: None{} case SCon{c, rest} True{}: Some{Cut{SNil{}, rest}} case SCon{Chr{+x}, +rest} False{}: field_cons(x, field_go(rest, dollar(rest))) 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=Char 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-collections@1.0.0.0/src/crypto/argon2/phc.bend&name=Cut https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/crypto/argon2/phc.bend&name=dollar https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/crypto/argon2/phc.bend&name=field_cons