2 ms·
It appears to have an error on slide 23, where the flatMap should return 1, -1 at the beginning rather than 1, -2? I don't know enough Scala to say with certai
by abhijat 14y ago
It appears to have an error on slide 23, where the flatMap should return 1, -1 at the beginning rather than 1, -2?
I don't know enough Scala to say with certainty but that seems to be an error:
Seq(1,2,3,4) flatMap { x =>
Seq(x, -x)
} == Seq(1,-2,2,-2,3,-3,4,-4)
- domlebo70 14y agoYeah you're right.