Vector index
Vector element can be referenced as sequence number in SPL
A |
|
1 |
[7,9,6,23,56,1] |
2 |
=A1(3) |
3 |
=A1.to(2) |
4 |
=A1.to(3:5) |
5 |
=A1.to(3:) |
6 |
=A1.m(-2) |
7 |
=A1.m([-2,-4]) |
8 |
=A1.m(-2:-4) |
A1 Input a vector
A2 Get the third member of A1,return 6. The sequence number starts from 1 in SPL.
A3 Get the first 2 members of A1,return[1,2]
A4 Get the members from third to fifth,return [6,23,56]
A5 Get the members from third to last,return [6,23,56,1]
A6 Get the second member from the backward, return 56.
A7 Get the second and 4thmembers from the backward,return [56,6]
A8 Get the members from the second to 4thwith a sequence from backwards to forwards,return[56,23,6]
SPL Official Website 👉 https://www.scudata.com
SPL Feedback and Help 👉 https://www.reddit.com/r/esProcSPL
SPL Learning Material 👉 https://c.scudata.com
SPL Source Code and Package 👉 https://github.com/SPLWare/esProc
Discord 👉 https://discord.gg/cFTcUNs7
Youtube 👉 https://www.youtube.com/@esProc_SPL