Hey! Is there a built-in way of determining if an ...
# announcements
m
Hey! Is there a built-in way of determining if an int falls within a number range?
a
m
Nah, I’m looking for something like
s
myNumber in start..end
?
..
will generate a range based on its start and end values,
in
will call
operator fun contains()
on that range
a
basically, `The main operation on ranges is 
contains
, which is usually used in the form of 
in
 and 
!in
 operators.` 🙂
👍🏻 2
so like @Shawn posted
m
Thanks guys that works!