⍝ External references from dfn ⍵:

    externs'externs'                ⍝ no externs from "externs"

    externs'test'                   ⍝ function "test" has three external refs
┌───┬───────┬────┬─────────┐
│⍙⍙⍙│scripts│disp│timestamp│
└───┴───────┴────┴─────────┘
    externs'defs'                   ⍝ function "defs" references a compound name
┌──┬───────────────────────┬───────┐
│in│⎕SE.Dyalog.Utils.repObj│externs│
└──┴───────────────────────┴───────┘

    1 externs'sum←⍵ ⋄ sum÷num'      ⍝ external references from expression
┌───┐
│num│
└───┘

    foo←{m⊣m←⍵}                     ⍝ in-line assignment
    externs'foo'

    foo←{sum←+⌿ ⋄ (sum÷num)⍵}       ⍝ diamond-separated assignment 
    externs'foo'
┌───┐
│num│
└───┘

    foo←{                           ⍝ forward-references of local names
        same←{succ ⍵}∘{pred ⍵}
        succ←{1+⍵}
        pred←{⍵-1}
        same ⍵
    }
    externs'foo'                    ⍝ no external refs

    bkt←('['∘,)∘(,∘']')             ⍝ derv with scalar ⎕nr component
    externs'bkt'


⍝∇ externs defs test

Back to: code

Back to: Workspaces