``scala
def size[A](list: List[A]): Int
```

<br>

```scala mdoc
size(List(1, 4, 8, -3))

size(List("Hello", "World", "!"))
```
]

.fifty-seven-right[
<img src="../img/foundation/parametric-list.svg" alt="Generic list" style="width:600px;"/>
]

---
# Generic function

.forty-two-left[
<br>
<br>

```scala
def size[Elem](list: List[Elem]): Int
```

<br>

```scala mdoc
size(List(1, 4, 8, -3))

size(List("Hello", "World", "!"))
```
]

.fifty-seven-right[
<img src="../img/foundation/parametric-list.svg" alt="Gen