def commands
import bend-kit-redis@0.3.0.0/redis.bend as Redisimport Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
830def commands(cmds: List<&1, List<&1, Bytes.Bytes>>, o: Bytes.Bytes, +n: Nat) -> Bytes.Bytes & Nat:
831 match cmds:
832 case Nil{}:
833 (o, n)
834 case Con{h, t}:
835 commands(t, Bytes.append(o, encode.command(h)), (1n + n : Nat))