0

Suppose I have a normal table $a$, what does $a[[-1]]$ mean, which element of the table?

Nahc
  • 455
  • 2
  • 11

1 Answers1

1

a[[-1]] means the last element of table a. actually, the negative index means the order from the back,such as{a,b,c,d}[[-2]] is c, it helps to manipulate list more efficiently.

Oliver Redman
  • 311
  • 2
  • 7