cancel
Showing results for 
Search instead for 
Did you mean: 
kilasuelika
New member
5 2 0 0
Message 1 of 1
333
Flag Post

Fail to use variable of MAKELIST to index a multilevel list.

HP Recommended
HP Prime G2

Consider following program:

EXPORT TEST()
BEGIN
 LOCAL X1:={{1,5},{1,5}};
 MAKELIST(X1[X],X,1,2);
END;

There will be an Invalid input error.

However, replace X1 with {1,2}, there will be no error.

Why I can't use  X to index a two-level list?

I'm using 2020 firmware.

0 Kudos
Tags (1)
† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation