def divide.go

emerging-ezhttp@0.21.0.0 · src/http.bend:54

import emerging-ezhttp@0.21.0.0/src/http.bend as Http
import Base

54# the walk: stop at the first hit
55def divide.go(s: String, +pat: String, +n: Nat) -> Cut:
56  match s:
57    case SNil{}:
58      NoCut{}
59    case SCon{+h, +t}:
60      divide.step(String.starts_with(SCon{h, t}, pat), h, t, n,
61        _u => divide.go(t, pat, n))

Uses (5)

Used by (1)