Affiliation:
1. Staff Programmer, Subproducts Systems Engineering, International Business Machines Corporation, Dept 262/Bldg 938, P.O.Box 950, Poughkeepsie, New York
Abstract
Proposals have been made to include function arrays in APL syntax. Strand syntax extends to provide vectors; bracket semantics, to provide reshaping.
Herein the structure phase of expression evaluation, which is APL's unique addition to the more familiar syntax and semantics phases, is analyzed. To the two argument shapes of VSAPL must be added the function shape. The extension of the conformance rules is straightforward; scalar conformance is the driving mechanism; applied recursively it is the basis of pervasion. Function and data arrays used with EACH and ENCLOSE, respectively, to produce scalars, lead to identities involving TRANSPOSE, DISCLOSE, and OUTER PRODUCT.
Analysis of the nonpervasive scalar function RHO EACH suggests what structural information must be retained in an empty function array. A vector of derived functions is a useful alternative to a derived function with an EACH in some common circumstances. A historical survey suggests that adding function vectors to APL2 would enhance the symmetry and balance of the language.
Publisher
Association for Computing Machinery (ACM)
Cited by
8 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献