klyn.collections.Array.Array
constructor
public Array(source as IList<T>):
Description

Creates a fixed-size array by copying an existing ordered collection.

The new array owns its storage: later writes to the source collection do not affect the copied array.

import klyn.collections

source = f:[10, 20, 30]
copy = Array<Int>(source)
copy[1] = 200
print(source[1])  # 20
print(copy[1])    # 200
Parameters
ParameterDescription
sourceOrdered collection to copy.