Skip to content

Glossary: Kotlin Beyond the Basics

Elvis operator

Also written: ?:

`?:` runs its right side when the left side is `null`, such as to give a fallback or `return` early.

Where the book teaches it

Related terms

withTimeout