chopΒΆ

Chops a Queue into fixed size smaller Queue -s.

chop(din: Queue, cfg: Uint) → din:
drv(t=Queue[Uint[4]], seq=[list(range(10))]) \
    | chop(size=4) \
    | check(ref=[list(range(4)), list(range(4, 8)), list(range(8, 10))])