Working fine here

Xtian.


      D←{24 ⎕cr ⍵}
      D ⍳4
┌4──────┐
│1 2 3 4│
└───────┘
      t←(3 4 ⍴ 12?100) (4 5 ⍴⍳20)
      D t
┌2──────────────────────────────┐
│┌4───────────┐ ┌5─────────────┐│
│377 85  51 69│ 4 1  2  3  4  5││
││ 8 42  46 41│ │ 6  7  8  9 10││
││93 67 100 52│ │11 12 13 14 15││
│└────────────┘ │16 17 18 19 20││
│               └──────────────┘│
└∊──────────────────────────────┘
      D t+1
┌2──────────────────────────────┐
│┌4───────────┐ ┌5─────────────┐│
│378 86  52 70│ 4 2  3  4  5  6││
││ 9 43  47 42│ │ 7  8  9 10 11││
││94 68 101 53│ │12 13 14 15 16││
│└────────────┘ │17 18 19 20 21││
│               └──────────────┘│
└∊──────────────────────────────┘
      D ← {8 ⎕cr ⍵}
      D t
┌→──────────────────────────────┐
│┌→───────────┐ ┌→─────────────┐│
│↓77 85  51 69│ ↓ 1  2  3  4  5││
││ 8 42  46 41│ │ 6  7  8  9 10││
││93 67 100 52│ │11 12 13 14 15││
│└────────────┘ │16 17 18 19 20││
│               └──────────────┘│
└∊──────────────────────────────┘



On 2015-09-04 14:16, Alexey Veretennikov wrote:
Hi,

I want to make an alias for the display function, like in Dyalog APL DISPLAY, 
but by some reason can't.
I want to function DISPLAY behave as 8⎕CR:

DISPLAY←{8⎕CR ⍵}

produces an error:
DEFN ERROR
       λ1
       ^

The
       DISPLAY←8⎕CR
also doesn't work:

SYNTAX ERROR
       DISPLAY←8 ⎕CR
       ^         ^

As a newbee, I would like some tips on what I'm doing wrong :)

Br,
/Alexey

Reply via email to