Looks good, but as a non-Scala guy I'm wondering how will it work if as and bs have different lengths?
Login to reply
Replies (1)
This is how the code above is desuggered (I altered the length of both lists):
```
val as = List(1, 2)
val bs = List(3, 4, 5, 6)
as.flatMap(a => bs.map(b => a + b))
// result: List(4, 5, 6, 7, 5, 6, 7, 8)
```