0

I looked up the manual and only find functions first([1,2,3]) second([1,2,3]) third([1,2,3]) ...

how to get an element by an index?

golopot
  • 246
  • 2
  • 6

2 Answers2

2

For example:

S:[a,b,c,d,e,f,g,h];

S[3]; $\Rightarrow$ c

S[7]; $\Rightarrow$ g

2

You can use the PART function, e.g. PART([1,2,3],2) = 2.

Bill Dubuque
  • 272,048