What does % mean in this statement in kotlin?

后端 未结 0 952
孤城傲影
孤城傲影 2020-12-09 03:31

I am learning kotlin and in a snipped of code iterating through a list i have this line: currentIndex = (currentIndex + 1) % myList.size

I am confused by the % sign.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题