Otherwise, the only way to do this is something li...
# stdlib
k
Otherwise, the only way to do this is something like
Copy code
ArrayList(5000).apply { /* add initial elements */ }
, not nearly as nice. We could roll our own function but it seems like a standard thing to want