⍝ Boxed display of array:

    displays 1 'a' 'abc' (2 3⍴⍳6)   ⍝ with shape along top border.
┌→─4────────────────┐
│     ┌→─3┐ ┌→─2 3┐ │
│ 1 a │abc│ ↓1 2 3│ │
│   - └───┘ │4 5 6│ │
│           └~────┘ │
└∊──────────────────┘

⍝ Compare with:

    display 1 'a' 'abc' (2 3⍴⍳6)    ⍝ "standard" display.
┌→──────────────────┐
│     ┌→──┐ ┌→────┐ │
│ 1 a │abc│ ↓1 2 3│ │
│   - └───┘ │4 5 6│ │
│           └~────┘ │
└∊──────────────────┘

    displays 1↓⎕tc      ⍝ VMJ
┌→┐
│ │
│ │
│ │
└─┘

Back to: code

Back to: Workspaces