3 ms·I guess what I meant to ask is what is the point of this code - what operation is it performing.by richcollins 15y agoI guess what I meant to ask is what is the point of this code - what operation is it performing.fizx 15y agoscala> List(1,2,3).flatMap(n => List(n, n*2)) res7: List[Int] = List(1, 2, 2, 4, 3, 6)omaranto 15y agoThat small snippet is the declaration of flatMap, i.e., it doesn't do anything if by do you mean compute.