def chunks.scan.step

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

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

332# apply one scan step
333def chunks.scan.step(step: Next, rest: Cut -> Maybe<&2, String>)
334  -> Maybe<&2, String>:
335  match step:
336    case Stop{}:
337      None{}
338    case Reject{why}:
339      Some{why}
340    case Go{cut}:
341      rest(cut)

Uses (4)

Used by (1)