I have an array: Option[Seq[People]]

```
case class People (
   name: Option[String],
   tall: Option[Boolean],
   fat: Boolean
)

```

What I want looks like:

```
String name = "Jack|Tom|Sam"
String tall = "True|True|True"
String fat = "True|False|True"

```

So, I tried:

```
name = array.flatMap(x => x.name).map(_.mkString("|"))
name = array.flatMap(_.slot_name).map(_.mkString("|"))

```

The above tries didn't work.