take

Forwards the requested number of the input Queue elements. The rest of the elements are consumed and discarded.

take(din: Queue, size: Uint) → din

Number of elements forwarded is specified by the data received at size input interface.

size = drv(t=Uint[2], seq=[2, 3])

drv(t=Queue[Uint[4]], seq=[[1, 2, 3, 4], [1, 2, 3, 4]]) \
    | take(size=size) \
    | check(ref=[[1, 2], [1, 2, 3]])