Create an array of given length filled with item or the result of item(index). If length is <= 0 an empty array is returned.
length
item
item(index)
element type
desired length of the array
Optional
value to fill or a function producing a value per index
newly created array of length length
Create an array of given
lengthfilled withitemor the result ofitem(index). Iflengthis <= 0 an empty array is returned.