Skip to main content
Version: v0.17.0

Clone

Alias:Clone

Output:ArrayList<T>

Creates an array by cloning an element.

ParameterTypeRequiredPositionDefault ValueSummary
ElementT✔1The element to clone.
Number
Times
int21The number of times to clone the element.

Examples​

Example 1​

SCL​

Clone Element: 'hello' Times: 2

Expected Output​

["hello", "hello"]

Example 2​

SCL​

Clone 1 Number: 3

Expected Output​

[1, 1, 1]