public Array(source as IList<T>):
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
| Parameter | Description |
|---|---|
source | Ordered collection to copy. |