Open furesoft opened 6 years ago
add range checks:
like in c# you write: if(variable < max && variable > min) {...}
but its a hugh stuff if you have more than 1 range checks.
if(variable in [min...max]) {}
then you dont double variable call its shorter
We already have [a...b], so all we would need is like [min...max].contains(variable).
[a...b]
[min...max].contains(variable)
add range checks:
like in c# you write: if(variable < max && variable > min) {...}
but its a hugh stuff if you have more than 1 range checks.
if(variable in [min...max]) {}
then you dont double variable call its shorter