RosettaCodeData/Task/Function-definition/APL/function-definition-1.apl

9 lines
254 B
APL
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
⍝⍝ 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 {×}