build Float List
Builds a new FloatList by populating a MutableFloatList 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
builder Action
Lambda in which the MutableFloatList can be populated.
inline fun buildFloatList(initialCapacity: Int, builderAction: MutableFloatList.() -> Unit): FloatList(source)
Builds a new FloatList by populating a MutableFloatList 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
initial Capacity
Hint for the expected number of elements added in the builderAction.
builder Action
Lambda in which the MutableFloatList can be populated.