Join Slack
Powered by
Now I would suggest closing LotteryPicker class, T...
# announcements
a
alien11689
08/27/2017, 6:44 PM
Now I would suggest closing LotteryPicker class, There is no need to create specific subclasses.
alien11689
08/27/2017, 6:51 PM
@Danilo Herrera
Function `refill`: you do not need explicit for. You can rewrite its body to:
Copy code
(1..size).forEach { add(it) }
or even
Copy code
addAll(1..size)
👍 1
d
Danilo Herrera
08/27/2017, 10:39 PM
Nice! I just realized that the set would have to be cleared first, but kudos for more concise method of adding the numbers
2
Views
Open in Slack
Previous
Next