limit_ordered
Description:
Returns a seq which contains the remaining elements of this seq, truncated to be no longer than n in length.
This operation always respects encounter order.
This is a short-circuiting stateful intermediate operation.
This operation is quite expensive on parallel execution. Using limit instead or switching to sequential execution may improve performance.
Parameters:
n |
maximum number of elements the seq may contain |
Returns:
the new seq |