Join Slack
Powered by
what is the most concise kotlin version of `[ x fo...
# getting-started
h
Hullaballoonatic
12/28/2018, 7:36 PM
what is the most concise kotlin version of
[ x for x in 5..n**0.5 step 6 ]
? so far i got:
Copy code
Array((n.sqrt - 5) / 6) { it * 6 + 5 }
but that to me isn't as easily understood
2
Views
Open in Slack
Previous
Next