   }
    }
  }
}
```
]

---
# Evaluation

<br><br><br><br>

.cols[
.forty-five[
```scala
val greeting =
  println("Hello")
// Hello

greeting


greeting
&#x200B;
```

.center[
## Once when created
]
]

.ten[&nbsp;&nbsp;&nbsp;]

.forty-five[
```scala
lazy val greeting =
  println("Hello")


greeting
// Hello

greeting
&#x200B;
```
.center[
## Once when accessed
]
]

.ten[&nbsp;&nbsp;&nbsp;]

.forty-five[
```scala
def greeting() =
  println("Hello")


greeting()
// Hello

greeting()
// Hello
```
.center[
## E