Mutable Long List
Creates a MutableLongList with the specified size, where each element is calculated by calling the specified init function. init is called for each list element sequentially starting from the first one. It should return the value for a list element given its index.
Parameters
size
The initial capacity of the list.
init
Function that takes an index and returns the element to be placed at that index.