klyn.collections.ArrayList.ArrayList
constructor
public ArrayList(collection as Collection<T>):
Description

Creates an ArrayList from a collection.

Parameters
  • collection The collection to copy elements from. ```klyn import klyn.collections source = HashSet<Int>([1, 2, 3]) copy = ArrayList<Int>(source) ```