Cookie.cookie.ipv4.step: def of emerging-ezhttp@0.21.0.0 Import: import emerging-ezhttp@0.21.0.0/src/cookie.bend as Cookie Lines 398-407 of emerging-ezhttp@0.21.0.0/src/cookie.bend: https://jend.leeeet.dev/read.txt?path=emerging-ezhttp@0.21.0.0/src/cookie.bend&start_line=398&end_line=407 import Base # a dot continues the scan, a digit keeps it, anything else stops def cookie.ipv4.step(dot: Bool, digit: Bool, if_dot: Unit -> Bool, if_digit: Unit -> Bool) -> Bool: match dot digit: case True{} _: if_dot(Unit{}) case False{} True{}: if_digit(Unit{}) case False{} False{}: False{} Uses (2): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Unit