Explore Library
KotlinIntroduction & Core Concepts

50 items

Code QuizBeginner

Single-expression function

Understand how expression-body functions are written.

Codekotlin
fun square(x: Int): Int = { x * x }

What is the bug in this code?