FANDOM



:seq(expression,variable,begin,end,increment)

This returns a list, in which the expression is solved out for each value of the variable, with the variable, begin, end and increment acting like in a For( function.

LocationEdit

  • 2ND + STAT (LIST)
  • OPS
  • 5:seq(

ExampleEdit

The following command creates a list of 99 items, with each items value being equal to its position. Although this is not particularly useful, it illustrates the use of the seq( command.

:seq(I,I,1,99,1)→L1


UsesEdit

Take Sub-ListsEdit

While processing data, it may be useful to take a portion of a list. Instead of looping through the list one element at a time, the seq( command can be used. The following command takes the first 10 elements of L1 and stores them in L2.

:seq(L1(I),I,1,10,1)→L2

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.