3 ms·
You don't even need to create a range! You can just use: List(1000) { i -> i+1 } Which creates a list of 1 to 1000
by yuye 2y ago
You don't even need to create a range! You can just use:
List(1000) { i -> i+1 }
Which creates a list of 1 to 1000