While it may be a wonderful bit of functional code, it is not nearly as efficient as the iterative solution
While it is functional, I wouldn't describe it as wonderful :-) A functional developer would use reduce to do it efficiently
In reply to Re^10: Specializing Functions with Currying
by adrianh
in thread Specializing Functions with Currying
by FoxtrotUniform
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |