Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Direct function

From Wikipedia, the free encyclopedia
Alternate way to define a function in APL
"Dfns" redirects here. For the political entity sometimes known as the Democratic Federation of Northern Syria, seeAutonomous Administration of North and East Syria.

Adirect function (dfn, pronounced "dee fun") is an alternative way to define a function and operator (ahigher-order function) in the programming languageAPL. A direct operator can also be called adop (pronounced "dee op"). They were invented byJohn Scholes in 1996.[1] They are a unique combination ofarray programming, higher-order function, andfunctional programming, and are a major distinguishing advance of early 21st century APL over prior versions.

A dfn is a sequence of possiblyguarded expressions (or just a guard) between{ and}, separated by or new-lines, wherein denotes the left argument and the right, and denotesrecursion (function self-reference). For example, the functionPT tests whether each row of is aPythagorean triplet (by testing whether the sum of squares equals twice the square of the maximum).

PT{(+/*2)=2×(/)*2}PT3451x453311651312171681112417158PTx101001

Thefactorial function as a dfn:

fact{0=⍵:1×-1}fact5120fact¨10⍝ fact applied to each element of 0 to 9112624120720504040320362880

Description

[edit]

The rules for dfns are summarized by the following "reference card":[2]

{function}{⍺⍺operator⍵⍵}:   guard
  left argument⍺⍺  left operand::  error-guard
  right argument⍵⍵  right operand  default left argument 
  self-reference  ∇∇  self-reference  s  shy result

A dfn is a sequence of possiblyguarded expressions (or just a guard) between{ and}, separated by or new-lines.

expressionguard:expressionguard:

The expressions and/or guards are evaluated in sequence. A guard must evaluate to a 0 or 1; its associated expression is evaluated if the value is 1. A dfn terminates after the first unguarded expression which does not end inassignment, or after the first guarded expression whose guard evaluates to 1, or if there are no more expressions. The result of a dfn is that of the last evaluated expression. If that last evaluated expression ends in assignment, the result is "shy"—not automatically displayed in the session.

Names assigned in a dfn arelocal by default, withlexical scope.

denotes the left function argument and the right;⍺⍺ denotes the left operand and⍵⍵ the right. If⍵⍵ occurs in the definition, then the dfn is a dyadicoperator; if only⍺⍺ occurs but not⍵⍵, then it is a monadic operator; if neither⍺⍺ or⍵⍵ occurs, then the dfn is a function.

The special syntaxexpression is used to give a default value to the left argument if a dfn is called monadically, that is, called with no left argument. Theexpression is not evaluated otherwise.

denotesrecursion or self-reference by the function, and∇∇ denotes self-reference by the operator. Such denotation permitsanonymous recursion.

Error trapping is provided through error-guards,errnums::expression. When an error is generated, the system searches dynamically through the calling functions for an error-guard that matches the error. If one is found, the execution environment is unwound to its state immediately prior to the error-guard's execution and the associated expression of the error-guard is evaluated as the result of the dfn.

Additional descriptions, explanations, and tutorials on dfns are available in the cited articles.[3][4][5][6][7]

Examples

[edit]

The examples here illustrate different aspects of dfns. Additional examples are found in the cited articles.[8][9][10]

Default left argument

[edit]

The function{+0j1×} adds to0j1 (i or1{\displaystyle {\sqrt {-1}}}) times.

3{+0j1×}43J4∘.{+0j1×}¯2+⍳5¯2J¯2¯2J¯1¯2¯2J1¯2J2¯1J¯2¯1J¯1¯1¯1J1¯1J20J¯20J¯100J10J21J¯21J¯111J11J22J¯22J¯122J12J2

The significance of this function can be seen as follows:

Complex numbers can be constructed as ordered pairs of real numbers, similar to how integers can be constructed as ordered pairs of natural numbers and rational numbers as ordered pairs of integers. For complex numbers,{+0j1×} plays the same role as- for integers and÷ for rational numbers.[11]: §8 

Moreover, analogous to that monadic-0- (negate) and monadic÷1÷ (reciprocal), a monadic definition of the function is useful, effected by specifying a default value of 0 for: ifj{0+0j1×}, thenj0j0+0j1×.

j{0+0j1×}3j4¯5.67.893J43J¯5.63J7.89j4¯5.67.890J40J¯5.60J7.89sin1cos2Euler{(*j)=(cos)j(sin)}Euler(¯0.5+?100)j(¯0.5+?100)1111111111

The last expression illustratesEuler's formula on ten random numbers with real and imaginary parts in the interval(0.5,0.5){\displaystyle \left(-0.5,0.5\right)}.

Single recursion

[edit]

The ternary construction of theCantor set starts with the interval [0,1] and at each stage removes the middle third from each remaining subinterval:

[0,1]{\displaystyle {\biggl [}0,1{\biggr ]}\to }

[0,13][23,1]{\displaystyle \left[0,{\frac {1}{3}}\right]\cup \left[{\frac {2}{3}},1\right]\to }

[0,19][29,13][23,79][89,1]{\displaystyle \left[0,{\frac {1}{9}}\right]\cup \left[{\frac {2}{9}},{\frac {1}{3}}\right]\cup \left[{\frac {2}{3}},{\frac {7}{9}}\right]\cup \left[{\frac {8}{9}},1\right]\to \cdots }

The Cantor set of order defined as a dfn:[11]: §2.5 

Cantor{0=⍵:,1,101∘.-1}Cantor01Cantor1101Cantor2101000101Cantor3101000101000000000101000101

Cantor 0 to Cantor 6 depicted as black bars:

The functionsieve computes a bit vector of length so that biti (for0i andi<) is 1 if and only ifi is aprime.[10]: §46 

sieve{4⍵:⍵0011r0.5*np235711131719232931374143p(1+(n≤×p)1)pb0@1{(m)>m1mn×≢}1,p{r<qb1:bb[]1b[q,q×⍸bn÷q]0,q}p}1010sieve1000011010100010100010100010000010100000100010100010000010000010100000100010100000100010000010000000100bsieve1e9b1000000000(10*⍳10)(+)01b04251681229959278498664579576145550847534

The last sequence, the number of primes less than powers of 10, is an initial segment ofOEISA006880. The last number, 50847534, is the number of primes less than109{\displaystyle 10^{9}}. It is called Bertelsen's number, memorably described byMathWorld as "an erroneous name erroneously given the erroneous value ofπ(109)=50847478{\displaystyle \pi (10^{9})=50847478}".[12]

sieve uses two different methods to mark composites with 0s, both effected using local anonymous dfns: The first uses thesieve of Eratosthenes on an initial mask of 1 and a prefix of the primes 2 3...43, using theinsert operator (right fold). (The length of the prefix obtains by comparison with theprimorial function×p.) The second finds the smallest new primeq remaining inb (qb1), and sets to 0 bitq itself and bits atq times the numbers at remaining 1 bits in an initial segment ofb (bn÷q). This second dfn uses tail recursion.

Tail recursion

[edit]

Typically, thefactorial function is define recursively (asabove), but it can be coded to exploittail recursion by using an accumulator left argument:[13]

fac{1=0:⍺(×)-1}

Similarly, thedeterminant of a square complex matrix usingGaussian elimination can be computed with tail recursion:[14]

det{⍝ determinant of a square complex matrix1⍝ product of co-factor coefficients so far0=≢⍵:⍺⍝ result for 0-by-0(ij)()⊤⊃⍒|,⍝ row and column index of the maximal elementk⍳≢(×[i;j]ׯ1*i+j)[k~i;k~j]-[k~i;j]∘.×[i;k~j]÷[i;j]}

Multiple recursion

[edit]

Apartition of a non-negative integern{\displaystyle n} is a vectorv{\displaystyle v} of positive integers such thatn=+v, where the order inv{\displaystyle v} is not significant. For example,22 and211 are partitions of 4, and211 and121 and112 are considered to be the same partition.

Thepartition functionP(n){\displaystyle P(n)} counts the number of partitions. The function is of interest innumber theory, studied byEuler,Hardy,Ramanujan,Erdős, and others. The recurrence relation

P(n)=k=1n(1)k+1[P(n12k(3k1))+P(n12k(3k+1))]{\displaystyle P(n)=\sum _{k=1}^{n}(-1)^{k+1}[P(n-{\frac {1}{2}}k(3k-1))+P(n-{\frac {1}{2}}k(3k+1))]}

derived from Euler'spentagonal number theorem.[15] Written as a dfn:[10]: §16 

pn{1⍵:0-+¨rec}rec{-(÷2(×1)¯11∘.+3×)1+⍳⌈0.5*×2÷3}pn1042pn¨13⍝ OEIS A00004111235711152230425677

The basis step1⍵:0 states that for1, the result of the function is0, 1 if ⍵ is 0 or 1 and 0 otherwise. The recursive step is highly multiply recursive. For example,pn200 would result in the function being applied to each element ofrec200, which are:

rec200199195188178165149130108835524¯10198193185174160143123100744513¯22

andpn200 requires longer than theage of the universe to compute (7.57×1047{\displaystyle 7.57\times 10^{47}} function calls to itself).[10]: §16  The compute time can be reduced bymemoization, here implemented as the direct operator (higher-order function)M:

M{f⍺⍺i2+'⋄'t2↓,⎕cr'f''{T←(1+⍵)⍴¯1 ⋄ ',(it),'¯1≢T[⍵]:⊃T[⍵] ⋄ ⊃T[⍵]←⊂',(it),'⍵}⍵'}pnM2003.973E120pnM200⍝ format to 0 decimal places3972999029388

This value ofpnM200 agrees with that computed by Hardy and Ramanujan in 1918.[16]

The memo operatorM defines a variant of its operand function⍺⍺ to use acacheT and then evaluates it. With the operandpn the variant is:

{T(1+)¯1{1⍵:0¯1T[]:T[]T[]⊂-+¨rec}}

Direct operator (dop)

[edit]

Quicksort on an array works by choosing a "pivot" at random among its major cells, then catenating the sorted major cells which strictly precede the pivot, the major cells equal to the pivot, and the sorted major cells which strictly follow the pivot, as determined by a comparison function⍺⍺. Defined as a directoperator (dop)Q:

Q{1≥≢⍵:⍵(⌿⍨0>s)(⌿⍨0=s)⌿⍨0<s⍺⍺?≢}⍝ precedes            ⍝ follows            ⍝ equals2(×-)88(×-)28(×-)8¯110x2193836941970101514(×-)Qx0233467891014151919

Q3 is a variant that catenates the three parts enclosed by the function instead of the partsper se. The three parts generated at each recursive step are apparent in the structure of the final result. Applying the function derived fromQ3 to the same argument multiple times gives different results because the pivots are chosen at random.In-order traversal of the results does yield the same sorted array.

Q3{1≥≢⍵:⍵(⌿⍨0>s)(⌿⍨0=s)⍪⊂⌿⍨0<s⍺⍺?≢}(×-)Q3x┌────────────────────────────────────────────┬─────┬┐│┌──────────────┬─┬─────────────────────────┐│1919││││┌──────┬───┬─┐│6│┌──────┬─┬──────────────┐│││││││┌┬─┬─┐│334││││┌┬─┬─┐│9│┌┬──┬────────┐││││││││││02││││││││78│││││10│┌──┬──┬┐│││││││││└┴─┴─┘│││││└┴─┴─┘││││││1415││││││││││└──────┴───┴─┘│││││││└──┴──┴┘│││││││││││└┴──┴────────┘││││││││└──────┴─┴──────────────┘│││││└──────────────┴─┴─────────────────────────┘│││└────────────────────────────────────────────┴─────┴┘(×-)Q3x┌───────────────────────────┬─┬─────────────────────────────┐│┌┬─┬──────────────────────┐│7│┌────────────────────┬─────┬┐││││0│┌┬─┬─────────────────┐││││┌──────┬──┬────────┐│1919│││││││││2│┌────────────┬─┬┐││││││┌┬─┬─┐│10│┌──┬──┬┐│││││││││││││┌───────┬─┬┐│6││││││││││89││││1415││││││││││││││││┌┬───┬┐│4│││││││││││└┴─┴─┘││└──┴──┴┘││││││││││││││││33│││││││││││││└──────┴──┴────────┘│││││││││││││└┴───┴┘││││││││││└────────────────────┴─────┴┘│││││││││└───────┴─┴┘│││││││││││││└────────────┴─┴┘│││││││└┴─┴─────────────────┘│││└┴─┴──────────────────────┘│└───────────────────────────┴─┴─────────────────────────────┘

The above formulation is not new; see for example Figure 3.7 of the classicThe Design and Analysis of Computer Algorithms.[17] However, unlike thepidginALGOL program in Figure 3.7,Q is executable, and the partial order used in the sorting is an operand, the(×-) the examples above.[9]

Dfns with operators and trains

[edit]

Dfns, especially anonymous dfns, work well with operators and trains. The following snippet solves a "Programming Pearls" puzzle:[18] given a dictionary of English words, here represented as the character matrixa, find all sets of anagrams.

a{[]}1a({[]}1{})apatsapst┌────┬────┬────┐spatapstpatsteasstarteasaestspatsatesateaesttapsetastapsapstpastseatetasaesteatspastapsttaseseataesteasteatsaestsetataseaest└────┴────┴────┘stararsteastaestsetaaest

The algorithm works by sorting the rows individually ({[]}1a), and these sorted rows are used as keys ("signature" in the Programming Pearls description) to thekey operator to group the rows of the matrix.[9]: §3.3  The expression on the right is atrain, a syntactic form employed by APL to achievetacit programming. Here, it is an isolated sequence of three functions such that(fgh)(f)g(h), whence the expression on the right is equivalent to({[]}1a){}a.

Lexical scope

[edit]

When an inner (nested) dfn refers to a name, it is sought by looking outward through enclosing dfns rather than down thecall stack. This regime is said to employlexical scope instead of APL's usualdynamic scope. The distinction becomes apparent only if a call is made to a function defined at an outer level. For the more usual inward calls, the two regimes are indistinguishable.[19]: p.137 

For example, in the following functionwhich, the variablety is defined both inwhich itself and in the inner functionf1. Whenf1 calls outward tof2 andf2 refers toty, it finds the outer one (with value'lexical') rather than the one defined inf1 (with value'dynamic'):

which{ty'lexical'f1{ty'dynamic'f2}f2{ty,}f1}which' scope'lexicalscope

Error-guard

[edit]

The following function illustrates use of error guards:[19]: p.139 

plus{tx'catch all'0::txtx'domain'11::txtx'length'5::tx+}2plus3⍝ no errors52345plus'three'⍝ argument lengths don't matchlength2345plus'four'⍝ can't add charactersdomain23plus345⍝ can't add vector to matrixcatchall

In APL, error number 5 is "length error"; error number 11 is "domain error"; and error number 0 is a "catch all" for error numbers 1 to 999.

The example shows the unwinding of the local environment before an error-guard's expression is evaluated. The local nametx is set to describe the purview of its following error-guard. When an error occurs, the environment is unwound to exposetx's statically correct value.

Dfnsversus tradfns

[edit]

Since direct functions are dfns, APL functions defined in the traditional manner are referred to as tradfns, pronounced "trad funs". Here, dfns and tradfns are compared by consideration of the functionsieve: On the left is a dfn (as definedabove); in the middle is a tradfn usingcontrol structures; on the right is a tradfn usinggotos () andline labels.

sieve{4⍵:⍵0011r0.5*np235711131719232931374143p(1+(n≤×p)1)pb0@1{(m)>m1mn×≢}1,p{r<qb1:bb[]1b[q,q×⍸bn÷q]0,q}p}
bsieve1n;i;m;p;q;r:If4nbn0011:Return:EndIfr0.5*np235711131719232931374143p(1+(n≤×p)1)pb1:Forq:Inpb(mb)>mq1mnq×≢b:EndForb[1]0:Whilerqb1b[q,q×⍸bn÷q]0pq:EndWhileb[p]1
bsieve2n;i;m;p;q;rL104<nbn00110L10:r0.5*np235711131719232931374143p(1+(n≤×\p)1)pi0b1L20:b(mb)>mp[i]1mnp[i]×≢bL20(p)>i1+ib[1]0L30:L40r<qb1b[q,q×⍸bn÷q]0pqL30L40:b[p]1
  • A dfn can beanonymous; a tradfn must be named.
  • A dfn is named by assignment (); a tradfn is named by embedding the name in the representation of the function and applying⎕fx (a system function) to that representation.
  • A dfn is handier than a tradfn as an operand (see preceding items: a tradfn must be named; a tradfn is named by embedding ...).
  • Namesassigned in a dfn arelocal by default; names assigned in a tradfn areglobal unless specified in a locals list.
  • Locals in a dfn havelexical scope; locals in a tradfn havedynamic scope, visible in called functions unlessshadowed bytheir locals list.
  • The arguments of a dfn are named and and the operands of a dop are named⍺⍺ and⍵⍵; the arguments and operands of a tradfn can have any name, specified on its leading line.
  • The result (if any) of a dfn is unnamed; the result (if any) of a tradfn is named in its header.
  • A default value for ⍺ is specified more neatly than for the left argument of a tradfn.
  • Recursion in a dfn is effected by invoking or∇∇ or its name; recursion in a tradfn is effected by invoking its name.
  • Flow control in a dfn is effected by guards and function calls; that in a tradfn is by control structures and (goto) and line labels.
  • Evaluating an expression in a dfn not ending in assignment causes return from the dfn; evaluating a line in a tradfn not ending in assignment or goto displays the result of the line.
  • A dfn returns on evaluating an expression not ending in assignment, on evaluating a guarded expression, or after the last expression; a tradfn returns on (goto) line 0 or a non-existing line, or on evaluating a:Return control structure, or after the last line.
  • The simpler flow control in a dfn makes it easier to detect and implementtail recursion than in a tradfn.
  • A dfn may call a tradfn andvice versa; a dfn may be defined in a tradfn, andvice versa.

History

[edit]

Kenneth E. Iverson, the inventor of APL, was dissatisfied with the way user functions (tradfns) were defined. In 1974, he devised "formal function definition" or "direct definition" for use in exposition.[20] A direct definition has two or four parts, separated by colons:

name:expressionname:expression0:proposition:expression1

Within a direct definition, denotes the left argument and the right argument. In the first instance, the result ofexpression is the result of the function; in the second instance, the result of the function is that ofexpression0 ifproposition evaluates to 0, orexpression1 if it evaluates to 1. Assignments within a direct definition aredynamically local. Examples of using direct definition are found in the 1979Turing Award Lecture[21] and in books and application papers.[22][23][24][25][9]

Direct definition was too limited for use in larger systems. The ideas were further developed by multiple authors in multiple works[26]: §8 [27][28]: §4.17 [29][30][31][32] but the results were unwieldy. Of these, the "alternative APL function definition" of Bunda in 1987[31] came closest to current facilities, but is flawed in conflicts with existing symbols and in error handling which would have caused practical difficulties, and was never implemented. The main distillates from the different proposals were that (a) the function being defined is anonymous, with subsequent naming (if required) being effected by assignment; (b) the function is denoted by a symbol and thereby enablesanonymous recursion.[9]

In 1996,John Scholes of Dyalog Limited invented direct functions (dfns).[1][6][7] The ideas originated in 1989 when he read a special issue ofThe Computer Journal on functional programming.[33] He then proceeded to study functional programming and became strongly motivated ("sick with desire", likeYeats) to bring these ideas to APL.[6][7] He initially operated in stealth because he was concerned the changes might be judged too radical and an unnecessary complication of the language; other observers say that he operated in stealth because Dyalog colleagues were not so enamored and thought he was wasting his time and causing trouble for people. Dfns were first presented in the Dyalog Vendor Forum at the APL '96 Conference and released in Dyalog APL in early 1997.[1] Acceptance and recognition were slow in coming. As late as 2008, inDyalog at 25,[34] a publication celebrating the 25th anniversary of Dyalog Limited, dfns were barely mentioned (mentioned twice as "dynamic functions" and without elaboration). As of 2019[update], dfns are implemented in Dyalog APL,[19] NARS2000,[35] and ngn/apl.[36] They also play a key role in efforts to exploit the computing abilities of agraphics processing unit (GPU).[37][9]

References

[edit]
  1. ^abcScholes, John (October 1996)."Direct Functions in Dyalog APL"(PDF).Vector.13 (2). Retrieved16 September 2019.
  2. ^Scholes, John (1998–2019),Direct Functions Reference Card, retrieved26 September 2019[permanent dead link]
  3. ^Scholes, John (April 2001)."D: A Functional Subset of Dyalog APL".Vector.17 (4). Retrieved21 September 2019.
  4. ^Scholes, John (13 September 2009).Introduction to D-functions: 1 of 2 (video). Dyalog '09 User Conference. Retrieved21 September 2019.
  5. ^Scholes, John (13 September 2009).Introduction to D-functions: 2 of 2 (video). Dyalog '09 User Conference. Retrieved21 September 2019.
  6. ^abcScholes, John (31 October 2018).Dfns—Past, Present and Future (video). Dyalog '18 User Meeting. Retrieved21 September 2019.
  7. ^abcScholes, John (31 October 2018),Dfns—Past, Present and Future (text)(PDF), Dyalog '18 User Meeting, retrieved21 September 2019
  8. ^Scholes, John (1998–2019),Direct Functions Workspace, retrieved2019-09-15
  9. ^abcdefHui, Roger; Kromberg, Morten (June 2020)."APL Since 1978".Proceedings of the ACM on Programming Languages.4 (HOPL):1–108.doi:10.1145/3386319.S2CID 218517570.
  10. ^abcdHui, Roger (27 November 2016),A History of APL in 50 Functions, retrieved17 September 2019
  11. ^abHui, Roger (18 July 2016),APL Exercises, retrieved24 September 2019
  12. ^Weisstein, Eric W.,Bertelsen's Number, MathWorld, A Wolfram Web Resource, retrieved26 September 2019
  13. ^Scholes, John (1998–2019),"Factorial",DFNS Workspace, retrieved20 September 2019
  14. ^Scholes, John (1998–2019),"Determinant",DFNS Workspace, retrieved20 September 2019
  15. ^Weisstein, Eric W.,Partition Function P, equation 11, MathWorld, A Wolfram Web Resource, retrieved3 October 2019
  16. ^Hardy, G.H.; Ramanujan, S. (1918),"Asymptotic Formulæ in Combinatory Analysis"(PDF),Proceedings of the London Mathematical Society,17 (2), retrieved24 December 2019
  17. ^Aho, A.V.;Hopcroft, J.E.;Ullman, J.D. (1974),The Design and Analysis of Computer Algorithms, Addison-Wesley,Bibcode:1974daca.book.....A
  18. ^Bentley, Jon (August 1983). "Programming Pearls".Communications of the ACM.26 (8 and 9).
  19. ^abcDyalog (15 August 2019).Dyalog Programming Reference Guide, version 17.1, Dfns & Dops, pp. 133-147(PDF). Dyalog Ltd. Retrieved30 September 2019.
  20. ^Iverson, Kenneth E. (1974),"Chapter 10, Formal Function Definition",Elementary Functions, IBM Corporation, retrieved18 September 2019
  21. ^Iverson, Kenneth E. (August 1980)."Notation as a Tool of Thought".Communications of the ACM.23 (8):444–465.doi:10.1145/358896.358899. Retrieved8 April 2016.
  22. ^Iverson, Kenneth E. (1976).Elementary Analysis. APL Press.
  23. ^Orth, D.L. (1976).Calculus in a New Key. APL Press.
  24. ^Hui, Roger (May 1987)."Some Uses of { and }".APL 87 Conference Proceedings. Retrieved15 April 2016.
  25. ^McDonnell, E.E. (May 1987),"Life: Nasty, Brutish, and Short",APL 87 Conference Proceedings, retrieved6 October 2019[permanent dead link]
  26. ^Iverson, Kenneth E. (26 April 1978),"Operators and Functions",Research Report Number #RC7091, IBM Corporation, retrieved2019-09-19
  27. ^Iverson, Kenneth E.; Wooster, Peter (September 1981). "A Function Definition Operator".APL81 Conference Proceedings, APL Quote Quad.12 (1).
  28. ^Cheney, Carl M. (March 1981),APL*Plus Nested Array System Reference Manual(PDF),STSC, Inc., retrieved18 September 2019
  29. ^Iverson, Kenneth E. (6 January 1983),Rationalized APL,I. P. Sharp Associates, retrieved2019-09-19
  30. ^Iverson, Kenneth E. (September 1987)."A Dictionary of APL".APL Quote Quad.18 (1):5–40.doi:10.1145/36983.36984.S2CID 18301178. Retrieved19 September 2019.
  31. ^abBunda, John (May 1987). "APL Function Definition Notation".APL87 Conference Proceedings, APL Quote Quad.17 (4).
  32. ^Hui, Roger; et al. (July 1990)."APL\?".Conference proceedings on APL 90: For the future. Vol. 20. pp. 192–200.doi:10.1145/97808.97845.ISBN 089791371X.S2CID 235453656. Retrieved2019-09-10.
  33. ^Wadler, Philip L.; et al. (1 January 1989). "Special Issue on Functional Programming".The Computer Journal.32 (2).
  34. ^Dyalog (September 2008)."Dyalog at 25"(PDF).Vector. Retrieved2019-09-20.
  35. ^Smith, Bob (2006–2019),NARS2000, retrieved18 September 2019
  36. ^Nickolov, Nick (September 2013)."Compiling APL to JavaScript".Vector.26 (1). Retrieved19 September 2019.
  37. ^Hsu, Aaron (2019).A Data Parallel Compiler Hosted on a GPU(PDF) (Ph.D. thesis).Indiana University. Retrieved25 December 2019.

External links

[edit]
Features
Implementations
Major
  • Dyalog APL
  • APL2 →APLX
  • SHARP APL
  • NARS → NARS2000°
Dialects
Community
Professional
associations
Organizations
Business
Education
People
Retrieved from "https://en.wikipedia.org/w/index.php?title=Direct_function&oldid=1292720546"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp