Methods

*ΒΆ

*(arr:Arr, n:Int)

Repeat all elements in arr n times
Source: stdlib.ngs:1441

arr

Elements to repeat

n

Number of times to repeat the elements

Returns

Arr

Example

[10,20] * 2  # [10,20,10,20]