boxing

inline fun <T> boxing(size: Int, initializer: (Int) -> T): Buffer<T>

Creates a ListBuffer of given type T with given size. Each element is calculated by calling the specified initializer function.

Sources

common source
Link copied to clipboard