注意:以下翻译的准确性尚未经过验证。这是使用 AIP ↗ 从原始英文文本进行的机器翻译。
支持于: 批处理, 流处理
返回从第一个位置到第二个位置的数组切片。第一个位置必须为1或更高。如果第二个位置超过数组长度,将返回数组的其余部分。
表达式类别: 数组
类型变量边界: T 接受 AnyType
输出类型: Array<T>
参数值:
array
sliceBegins
sliceLength
array | sliceBegins | sliceLength | 输出 |
---|---|---|---|
[ hello, world, out, there ] | 1 | 2 | [ hello, world ] |
[ hello, world, out, there ] | 2 | 2 | [ world, out ] |
[ hello, world, out, there ] | 1 | 0 | [ ] |
[ hello, world, out, there ] | 2 | 10 | [ world, out, there ] |
[ hello, world, out, there ] | -1 | 2 | [ there ] |
参数值:
array
sliceBegins
sliceLength
array | sliceBegins | sliceLength | 输出 |
---|---|---|---|
[ hello, world, out, there ] | 0 | 1 | null |
[ hello, world, out, there ] | 0 | 0 | null |
[ hello, world, out, there ] | 1 | -1 | null |
[ ] | 1 | 2 | [ ] |
[ null, null ] | 1 | 1 | [ null ] |