Skip to content

Glossary: Kotlin Basics

single-expression function

A function whose body is one expression, written with `=` instead of braces and `return`. Kotlin works out the return type.

Where the book teaches it

Related terms

expressionfunction