When the chunkSize value is known at compile-time, the return type of the operator will now reflect that and return a suitable union of tuples instead of an array with a generic length.
For example, chunk(3) will now return Operator<T, [T] | [T, T] | [T, T, T]> instead of Operator<T, Array<T>>.
When the
chunkSize
value is known at compile-time, the return type of the operator will now reflect that and return a suitable union of tuples instead of an array with a generic length.For example,
chunk(3)
will now returnOperator<T, [T] | [T, T] | [T, T, T]>
instead ofOperator<T, Array<T>>
.Closes #13