Hell yeah, brother. Functional programmers rise up.
Haven’t used a loop in almost a decade! It’s a nice life 😎
Hell yeah! Groovy programmer here, mapping closures over lists of objects.
As your compiler patiently turns it back into a loop.
mmyes
Unironically this. I know it’s the same assuming there’s no bugs (lol), but it’s just faster to type and easier to read, at least to me.
I always found map more confusing than loop for some reason. Especially nested.
To each their own.
Or sometimes fold them over trees of objects!
Objects? What is this OOP nonsense?
Immutable in order to protect against parallel code changing the size of the iterable?
Immutable because the only lists worth iterating over are the ones I define for myself.
Ah yes the X86 instruction set for mapping.
Everything is a conditional branch loop. Always has been.
There also isn’t a loop instruction though.
It’s a conditional branch… You make that into a loop. Branch if zero, branch if not zero, etc.
deleted by creator