aboutsummaryrefslogtreecommitdiff
path: root/tests/new/pmbug.scala
blob: 7d94e7a8bdfd327a47f6faf33d8259dfd04f0c88 (plain) (blame)
1
2
3
4
5
6
7
8
object Test {

  def flatten[a](l: List[List[a]]): List[a] = l match {
    case Nil => Nil
    case head :: tail => head ::: flatten(tail)
  }

}