Join Slack
Powered by
if it's just for comparing the values, then don't ...
# announcements
k
kirillrakhman
11/12/2015, 7:35 PM
if it's just for comparing the values, then don't create an array at all. if it's a parameter to a function, then
ints.min()
is fine, I guess. It's as safe as accessing the values because
ints[1]
can throw, if there aren't two values in the array.
3
Views
Open in Slack
Previous
Next