Skip to content

Limit

Name Mandatory Description Default Type
⬅️ Input The input sequence to truncate. [Any]
Output ➡️ The truncated sequence (or a single element if Max is 1). Any
Max No How many maximum elements to take from the input sequence. 0 Int

This shard truncates the input sequence to the specified number of elements(specified by the Max parameter) and outputs the truncated sequence.

Details

If 0 was provided in the Max parameter, the shard will return an empty sequence as 0 elements were obtained.

If 1 was provided in the Max parameter, the shard will return the first element of the input sequence (Not a sequence containing the first element).