Filter out values that exceed the specified limit.
The values to limit.
The max limit to apply. If null, no limit is applied.
If true, the last value will be the limit.
Filter out values that exceed the specified limit.