def slurp.next
import ezx@1.11.0.0/src/io/file.bend as Fileimport Base
32# the handle comes back paired with what it read
33def slurp.next(
34 got: File & Result<&1, &1, U32 & String, String>,
35 acc: String,
36 rest: File -> String -> IO(String)
37) -> IO(String):
38 (file, r) = got
39 slurp.more(r, file, acc, rest)