def words.run

bend-kit-zlib@0.5.1.0 · zlib.bend:1051

import bend-kit-zlib@0.5.1.0/zlib.bend as Zlib
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes

1051def words.run(~eff: U32 -> U32 -> Array<U32> -> IO(Result<&1, &1, U32 & String, U32 & Array<U32>>), max: U32, b: Bytes.Bytes) -> IO(Result<&1, &1, U32 & String, Bytes.Bytes>):
1052  Bytes.Bytes{+len, buf} = b
1053  do IO<Result<&1, &1, U32 & String, Bytes.Bytes>>:
1054    r : Result<&1, &1, U32 & String, U32 & Array<U32>> <- eff(max, len, buf)
1055    return words.got(r)

Uses (10)

Used by (4)