Cleanup
-
Replace Cascade if with when -
Replace get call with indexing operator -
Remove redundant qualifier name -
Remove empty constructor body and unused import -
Use withIndex() instead of manual index increment -
Change 'var' never modified to 'val' -
Remove explicit type arguments -
Simplify boolean expression
Edited by Yannick Li