| 항목 | 값 |
| 화면 이름 | Slice array |
| 식별자 | arraySliceV1 |
| 지원 실행 방식 | Batch, Faster, Streaming |
| 범주 | 배열 (Array) |
| 반환 자료형 | Array<T> |
시작 위치와 길이로 배열 구간을 추출합니다. 양수 위치는 1부터 세고 음수는 끝에서 셉니다. 시작 위치 0은 허용하지 않습니다. 길이가 배열 끝을 넘으면 나머지 원소 전체를 반환합니다.
| 이름 | 지정 여부 | 자료형 | 의미와 조건 |
Expression | 필수 | Expression<Array<T>> | 구간을 추출할 배열입니다. |
Slice begins | 필수 | Expression<Integer> | 시작 인덱스는 1부터 세며 음수는 배열 끝에서 셉니다. 0은 허용하지 않습니다. |
Slice length | 필수 | Expression<Integer> | 추출할 구간의 길이입니다. 배열 끝을 넘으면 남은 원소 전체를 반환합니다. |
T는 AnyType 범위의 자료형을 받습니다.
인자 값:
Expression: array
Slice begins: sliceBegins
Slice length: 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 ] |
인자 값:
Expression: array
Slice begins: sliceBegins
Slice length: 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 ] |