def scan

bend-lint-rules@0.2.0.0 · layout/format.bend:373

import bend-lint-rules@0.2.0.0/layout/format.bend as Format
import Base

373# Reads characters while test holds, after text; test sees the text from
374# each character on, so it can look ahead.
375def scan(
376  ~test: String -> Bool,
377  s: String,
378  keep: String,
379  ok: Bool,
380  text: String,
381  n: U32,
382  last: Char
383) -> Run:
384  scan.go(~test, s, keep, ok, String.reverse(text), n, last)

Uses (7)

Used by (5)