Y
Hacker News
new
|
ask
|
show
|
jobs
by
fizx
5406 days ago
scala> List(1,2,3).flatMap(n => List(n, n*2)) res7: List[Int] = List(1, 2, 2, 4, 3, 6)