Algebraic Structures: Things I wish someone had explained about FP
&gt; a.map(g).map(f) ≣ a.map(x =&gt; f(g(x)))<p>&gt; But the one on the left will be slower and use a lot more memory.<p>Is it really true?
I mean, GC will clean the intermediate array, won&#x27;t it?
And the speed won&#x27;t be significantly slower.
It&#x27;s still linear complexity anyway.