Block statement
A block statement is a statement block that contains multiple lines of statement, enclosed in curly brackets
1
println({
2
val x = 1 + 1
3
x + 1
4
}) // 3
Copied!
​
Last modified 1yr ago
Copy link