The affect is the same either way. reduce{ $a + $b }... and reduce{ $a += $b }... both end up with $a = $a + $b after each iteration.Urm... What?? reduce is not a function a "casual observer" can easily understand, without fully grasping what the function is for. Misusing it in a way like you do "to make clearer what it does" is actually getting away from the familiar path for the people who do know it, into unknown territory.The latter just makes it a little clerer to the casual observer maybe?
Don't do that. Use reduce only in the way it was intended to be used. That'll be clearer for everybody, in the end.
In reply to Re^3: Bugs? Or only in my expectations?
by bart
in thread Bugs? Or only in my expectations?
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |