Programming in MODULA-2 (3rd corrected ed.)
Programming in MODULA-2 (3rd corrected ed.)
The C programming language
A note on the Power Operators “loops are harmful”
ACM SIGPLAN Notices
Programming Standard Pascal
ACM SIGPLAN Notices
Hi-index | 0.00 |
A recent article in these Notices [1] gives an overview of proposals and implementations of a "power operator" which (in its simplest form), acting on a nonnegative integer N and on a dyadic function ¤, yields a monadic function which maps any nonnegative number B into B¤B¤B¤...¤B with N occurrences of B. The entire discourse is couched in APL terms, thus unfortunately suggesting a somewhat narrow relevance. To dispel this erroneous impression, we give here a simple example of a programming task where the utility of such a construct appears in a most natural manner, and suggest a possible syntax therefor.