Re: Create empy list on 38g/39g/40g Message #4 Posted by Eddie W. Shore on 25 Oct 2011, 9:02 a.m., in response to message #3 by Kiyoshi Akima
Quote:
Nope. {} gives a syntax error, with or without a space between the braces.
I got the same thing. MAKELIST requires a sequence - I can't imagine a way to create an empty list.
I have a feeling that empty lists aren't possible on the 38g/39g/40g.
Possible workaround (?):
Initialize the list with {1} and delete the "first 1" at the end program execution
{1} -> L1
** commands to add elements to L1
Result: L1 = {1, #, #, ...}
**
SUB L1; L1; 2; SIZE(L1)
Result: L1={#, #, #, ...}
SUB - CMDS-Matrix menu
SIZE - MATH-List menu
I hope this helps.
Eddie
Edited: 25 Oct 2011, 9:10 a.m.
|