There’s a Kotlin inspection, “Convert two comparis...
# intellij
l
There’s a Kotlin inspection, “Convert two comparisons to ‘in’”. The description is "This inspection reports two consecutive comparisons which can be converted to range check”. If you have something like
i > 0 && i < 10
it encourages you to replace that with
i in 0..10
.