def walk

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

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

1579# the walk of chunks.ended from the chunk header at the front of a text
1580def walk(fuel: Nat, +rest: String) -> Walk:
1581  match fuel:
1582    case 0n:
1583      Hold{0n, rest}
1584    case 1n+f:
1585      +g = f
1586      walk.at(g, rest, divide(rest, "\r\n"), s => walk(g, s))

Uses (5)

Used by (2)