4 ms·Yeah, the collect isn't really needed, you could easily use a reduce to calculate the value.by aardvark179 7y agoYeah, the collect isn't really needed, you could easily use a reduce to calculate the value.