Is there a shorthand for: ```(0..10).map { random.nextDouble() }``` ? Basically, I am looking for `...
p
Is there a shorthand for:
Copy code
(0..10).map { random.nextDouble() }
? Basically, I am looking for
repeat(n)
where the function can return a value:
Copy code
newRepeat(10).map { random.nextDouble() }
i
List(11) { random.nextDouble() }
👍 2
p
nice! I forgot about this one. thanks 🙂