System Function VR

From NARS2000
Revision as of 18:11, 8 May 2009 by WikiSysop (talk | contribs) (New page: <table border="1" cellpadding="5" cellspacing="0" rules="none" summary=""> <tr> <td> <table border="0" cellpadding="5" cellspacing="0" summary=""> <tr> <td valign="top"><ap...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
Z←⎕VR R returns the visual representation of the user-defined function or operator named in R.
R is a character scalar or vector.
Z is a character vector representation of the user-defined function/operator.


This system function is implemented as a internal Magic Function.

For example,

      ⎕VR '#MonVR'
    ∇ Z←#MonVR R;⎕io
[1]   ⎕io←0
[2]   Z←1 ⎕cr R
[3]   →(0≠⍴Z)/L1 ⋄ Z←'' ⋄ →0
[4]   L1:→(1=≡Z)/0
[5]   Z←(∊((⊂[1]'LO<    ∇>P<[>Q<]>I6' ⎕fmt ⍳⍴Z),¨Z),¨⊂⎕TCNL,⎕TCLF),'    ∇'
    ∇