Sharp EL-9900 operation manual Dim dimlist, Natural number ⇒ dimlist name, Fill fillvalue, list

Models: EL-9900

1 284
Download 284 pages 27.35 Kb
Page 146
Image 146

Chapter 9: List Features

3 dim( dim(list)

Returns the number of items (dimension) in the list.

Example

Display the dimension of list L1.

natural number dim(list name)

Set the number of items (dimension) of specified list to the specified number.

Example

Set the dimension of list L6 to 4.

All the elements are initially 0. This operation overwrites the existing list dimensions.

The existing values within the new dimensions remain as they are.

4 fill( fill(value, list)

Enter the specified value for all the items in the specified list.

* The dimension of the list must be set beforehand.

Example

Set the dimension of list L6 to 4 and substitute 5 for all the items of list L6.

136

Page 146
Image 146
Sharp EL-9900 operation manual Dim dimlist, Natural number ⇒ dimlist name, Fill fillvalue, list