buildDoubleList

inline fun buildDoubleList(builderAction: MutableDoubleList.() -> Unit): DoubleList(source)

Builds a new DoubleList by populating a MutableDoubleList using the given builderAction.

The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.

Parameters

builderAction

Lambda in which the MutableDoubleList can be populated.


inline fun buildDoubleList(initialCapacity: Int, builderAction: MutableDoubleList.() -> Unit): DoubleList(source)

Builds a new DoubleList by populating a MutableDoubleList using the given builderAction.

The instance passed as a receiver to the builderAction is valid only inside that function. Using it outside of the function produces an unspecified behavior.

Parameters

initialCapacity

Hint for the expected number of elements added in the builderAction.

builderAction

Lambda in which the MutableDoubleList can be populated.