Skip to content

Glossary: Kotlin Basics

read-only vs mutable

Also written: read-only, mutable, immutable

A read-only value can't be changed once made: a `val` variable, a `listOf` list, or a string. A mutable one, such as a `var` or a `mutableListOf` list, can be changed.

Where the book teaches it

Related terms

val / varlist