6.40.3 Making a list with zeros:
newList
The
newList
makes a list of all zeros.
newList
takes one argument:
n
, a positive integer.
newList(
n
)
returns a list of
n
zeros.
Example.
Input:
newList(3)
Output:
⎡
⎣
0,0,0
⎤
⎦