)
```

```scala mdoc:silent
val users = List(User("John", 23), User("Eda", 37), User("Bob", 18))
```

```scala mdoc:fail
map(users, (user: User) => user.name)
```

---
# Generic function

<br>

```scala
def map[A](list: List[A], update: A => A): List[A]
```

<br>

```scala
val users = List(User("John", 23), User("Eda", 37), User("Bob", 18))
```

```scala mdoc:fail
map[User](users, (user: User) => user.name)
```

---
# Generic function

<br>

```scala
def map[From, To](list: List[From], update: From => To): 