It's better to do this sort of thing like
```
val q = List[String => Option[String]](
  s => if ((s indexOf '.') >= 0) Some(s) else None,
  ... 
```
For one thing it's potentially insanely expensive to infer the type of the list; it's a bad gamble that it will be -- and remain -- what it looks like it is right now; and declaring the list type up front avoids the need to declare (s: String) everywhere.