# limit limit

## 函数语法

`limit(<parameters>)`

## 参数

listToProcess
listString、listBoolean、listInteger、listDecimal、listDuration、listDateTime、listDateTimeOnly、listDateOnly或listObject

firstOrLastItems

## 签名和返回的类型

`limit(<listString>,<integer>)`
`limit(<listString>,<integer>,<boolean>)`

`limit(<listInteger>,<integer>)`
`limit(<listInteger>,<integer>,<boolean>)`

`limit(<listDecimal>,<integer>)`
`limit(<listDecimal>,<integer>,<boolean>)`

`limit(<listBoolean>,<integer>)`
`limit(<listBoolean>,<integer>,<boolean>)`

`limit(<listDateOnly>,<integer>)`
`limit(<listDateOnly>,<integer>,<boolean>)`

`limit(<listDateTimeOnly>,<integer>)`
`limit(<listDateTimeOnly>,<integer>,<boolean>)`

`limit(<listDateTime>,integer>)`
`limit(<listDateTime>,<integer>,<boolean>)`

`limit(<listDuration>,<integer>)`
`limit(<listDuration>,<integer>,<boolean>)`

`limit(<listObject>,<integer>)`
`limit(<listObject>,<integer>,<boolean>)`

## 示例

`limit(["A", "B", "C", "D", "E"], 3)`

`limit(["A", "B", "C", "D", "E"], 3, false)`

recommendation-more-help
b22c9c5d-9208-48f4-b874-1cefb8df4d76