For count % 2 I get the warning
Warning:(137, 17) Kotlin: 'mod(Int): Int' is deprecated. Use rem(other) instead
and the Intellij IDE provides for an automated correction to count.rem(2) which I then get flagged as an error due to an unresolved reference to rem.
What am I doing wrong?