|
|
|
|
|
by angersock
4155 days ago
|
|
That's a correct change--I chose the implementation that I did so that it was very obvious how the things remap to a "functional" approach. :) You see the point I'm driving at, though? (and thanks for prodding me into writing code to illustrate things better) |
|
Yes, absolutely. I thought you were right on the money with the words but I figured a bit of code would do wonders to hammer it down.
Erlang does an even better job I think:
Or: Slightly longer, but without that X * X repetition.