(it: Sequence[T], count: int)
return (tuple(it[i : count + i]) for i in range(0, len(it), count))
Convert list of items into a list of `count` length items.
Convert list of items into a list of `count` length items.
Convert list of items into a list of count length items .
def chunk(it: Sequence[T], count: int) -> Iterator[Tuple[T, ...]]:
    """
    Convert list of items into a list of `count` length items.
    """
    return (tuple(it[i : count + i]) for i in range(0, len(it), count))
def chunk ( it : Sequence [ T ] , count : int ) -> Iterator [ Tuple [ T , ... ] ] : return ( tuple ( it [ i : count + i ] ) for i in range ( 0 , len ( it ) , count ) )