Block statement

A block statement is a statement block that contains multiple lines of statement, enclosed in curly brackets

println({
val x = 1 + 1
x + 1
}) // 3

Last updated