Skip to content
#

kotlin-when

Here is 1 public repository matching this topic...

Kotlin when expression is similar to the switch statement in C, C++ and Java. Kotlin when can be used either as an expression or as a statement, simply like a switch statement in Java. If it is used as an expression, the value of the first matching branch becomes the value of the overall expression.

  • Updated May 1, 2023
  • Kotlin

Improve this page

Add a description, image, and links to the kotlin-when topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the kotlin-when topic, visit your repo's landing page and select "manage topics."

Learn more