limit


Description:

public Seq<G> limit (int64 n)

Returns a seq which contains the remaining elements of this seq, truncated to be no longer than n in length.

On parallel execution, this operation doesn't respect encounter order.

This is a short-circuiting stateful intermediate operation.

Parameters:

n

maximum number of elements the seq may contain

Returns:

the new seq