Wintellect.PowerCollections Namespace
Algorithms Class
GhostDoc Pro Sample Help File

BigList<(Of <(<'T>)>)> Constructor (IEnumerable<(Of <(<'T>)>)>, Int32)

Creates a new BigList initialized with a given number of copies of the items from collection, in order.

Namespace:  Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax


public BigList(
	IEnumerable<T> collection,
	int copies
)
Public Sub New ( _
	collection As IEnumerable(Of T), _
	copies As Integer _
)
public:
BigList(
	IEnumerable<T>^ collection, 
	int^ copies
)

Parameters

collection
Type: IEnumerable<(Of <(<'T>)>)>
The collection used to initialize the BigList.
copies
Type: Int32
Number of copies of the collection to use.

Exceptions


ExceptionCondition
ArgumentOutOfRangeExceptioncopies is negative.
ArgumentNullExceptioncollection is null.

Remarks


Initializing the tree list with the elements of collection takes time O(N + log K), where N is the number of items in collection, and K is the number of copies.