blob: 4c10e963db8edff689ded81073411f2ec441f242 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
object Foobar {
def apply(): Option[String] = {
def foobar[A](f: (String, String) => A): List[A] = List[String]() match {
case _ :: ls => foobar(f)
}
foobar((a1, a2) => (a1 + a2)).headOption
}
}
|