FANDOM



(89) :newList(numelements)

This creates a list with numelements elements, in which every element is 0.

This is primarily useful because the ability to dim( of a list has be removed in TI-BASIC-89.

ExampleEdit

:posList(e)
:
:NewList(e)→l
:For i,1,e
::e→l[e]
:EndFor
:
:Return l

This program returns a list with e elements, in which every element is equal to its position. It starts by using NewList to create a list of e elements. Then it populates the list.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.