def qa.from
import bend-kit-regex@0.8.0.0/regex.bend as Regeximport Base
1979def qa.from(r: Rq, ar: Ar, +init: List<&2, Maybe<&2, U32>>, +cap: U32) -> Qa:
1980 Rq{a, tab, keys, n, +id, i, d, st, same} = r
1981 Qa{a, tab, keys, n, id, i, d, qa.from.state(U32.is_lt(id, cap), st, ar, init), same}