Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
8
Task/Function-definition/APL/function-definition-1.apl
Normal file
8
Task/Function-definition/APL/function-definition-1.apl
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
⍝⍝ APL2 'tradfn' (traditional function)
|
||||
⍝⍝ This syntax works in all dialects including GNU APL and Dyalog.
|
||||
∇ product ← a multiply b
|
||||
product ← a × b
|
||||
∇
|
||||
|
||||
⍝⍝ A 'dfn' or 'lambda' (anonymous function)
|
||||
multiply ← {⍺×⍵}
|
||||
2
Task/Function-definition/APL/function-definition-2.apl
Normal file
2
Task/Function-definition/APL/function-definition-2.apl
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
⍝⍝ Dyalog dfn (lambda) syntax
|
||||
multiply ← ×
|
||||
Loading…
Add table
Add a link
Reference in a new issue