Cookie.cookie.slashes: def of emerging-ezhttp@0.21.0.0 Import: import emerging-ezhttp@0.21.0.0/src/cookie.bend as Cookie Lines 328-334 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=328&end_line=334 import Base # how many slashes a path holds def cookie.slashes(p: String) -> Nat: match p: case SNil{}: 0n case SCon{h, t}: cookie.slashes.ch(Char.is_eq(h, '/'), _u => cookie.slashes(t)) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char.is_eq https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/cookie.bend&name=cookie.slashes.ch