Join Slack
Powered by
hi, is "if (value in set)" valid?
# getting-started
b
Bernhard
01/17/2019, 10:21 AM
hi, is "if (value in set)" valid?
d
diesieben07
01/17/2019, 10:23 AM
Yes. It's equivalent to calling `contains`:
https://kotlinlang.org/docs/reference/operator-overloading.html#in
b
Bernhard
01/17/2019, 10:23 AM
thank you!
Bernhard
01/17/2019, 10:23 AM
aaah, operator overloading 🙂
r
Ruckus
01/17/2019, 4:25 PM
@Bernhard
btw, you should use backticks to wrap code instead of quotes to get formatting.
2
Views
Open in Slack
Previous
Next