Template:APLFN5

From NARS2000
Revision as of 08:52, 27 February 2013 by Paul Robinson (talk | contribs) (new)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

This template is used to list an APL function having 5 lines. If this wiki adds the Parserfunction feature, this template will be replaced by a generic one.

This allows you to list the contents of a function without having to include the line numbers and the ∆ prefix and suffix. You just list the header and the 5 lines. Like this:

{{APLFN5|K←Header arg1
|'Line1'
|X←0
|rhoresult ← ⍴ X
|⍝ one more line
|K ←1}}

And you get:
    ∇ K←Header arg1
[1]   'Line1'
[2]   X←0
[3]   rhoresult ← ⍴ X
[4]   ⍝ one more line
[5]   K ←1}}
    ∇