#SCALA #NOTES Difference between list.foreach() and list.map()
[scala]val l = List(1,2,3,4,5) val lAfterForEach = l.foreach(x => x * 10) val lAfterMap = l.map(x => x * 10)…
[scala]val l = List(1,2,3,4,5) val lAfterForEach = l.foreach(x => x * 10) val lAfterMap = l.map(x => x * 10)…