Join Slack
Powered by
You can replace both loops with repeat, if you wan...
# getting-started
g
gildor
05/26/2017, 6:28 AM
You can replace both loops with repeat, if you want, but not sure that it’s looks better:
Copy code
repeat(5) { i -> repeat(i + 1) { print("*") } println() }
6
Views
Open in Slack
Previous
Next