12.07.2015 Views

Programmer's Guide & Language Reference - Dyalog Limited

Programmer's Guide & Language Reference - Dyalog Limited

Programmer's Guide & Language Reference - Dyalog Limited

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 1: Introduction 12ExamplesHANDFIST2 4⍴'HANDFIST'1 2 3 ∘.× 6 2 56 2 512 4 1018 6 152 3⍴2 4 6.1 8 10.24 122 4 6.18 10.24 122 4⍴4 'A' 'B' 5 ¯0.000000003 'C' 'D' 123.564E0 AB 5¯3E¯9 CD 123.56In the display of non-simple arrays, each element is displayed within a rectangle suchthat the rows and columns of the array are aligned. Simple items within the array aredisplayed as above. For non-simple items, this rule is applied recursively, with onespace added on each side of the enclosed element for each level of nesting.Examples1 2 3⍳3⊂⍳31 2 3⊂⊂⍳31 2 3('ONE' 1) ('TWO' 2) ('THREE' 3) ('FOUR' 4)ONE 1 TWO 2 THREE 3 FOUR 42 4⍴'ONE' 1 'TWO' 2 'THREE' 3 'FOUR' 4ONE 1 TWO 2THREE 3 FOUR 4Multi-dimensional arrays are displayed in rectangular planes. Planes are separatedby one blank line, and hyper-planes of higher dimensions are separated by increasingnumbers of blank lines. In all other respects, multi-dimensional arrays are displayedin the same manner as matrices.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!