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...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 1: Introduction 14If the display of an array is wider than the page width, as set by the system variable⎕PW, it will be folded at or before ⎕PW and the folded portions indented six spaces.The display of a simple numeric or mixed array may be folded at a width less than⎕PW so that individual numbers are not split across a page boundary.Example⎕PW←40?3 20⍴10054 22 5 68 68 94 39 52 84 4 6 53 6885 53 10 66 42 71 92 77 27 5 74 33 6466 8 64 89 28 44 77 48 24 28 36 17 491 39 7 42 69 49 9476 100 37 25 99 73 7690 91 7 91 51 52 32The Display FunctionThe DISPLAY function is implemented as a user command ]display distributedwith <strong>Dyalog</strong> APL and may be used to illustrate the structure of an array. ]displayis monadic. Its result is a character matrix containing a pictorial representation of itsargument. ]display is used throughout this manual to illustrate examples. Anarray is illustrated with a series of boxes bordering each sub-array. Characters embeddedin the border indicate rank and type information. The top and left borders containsymbols that indicate its rank. A symbol in the lower border indicates type. Thesymbols are defined as follows:→ Vector.↓ Matrix or higher rank array.⊖ Empty along last axis.⌽ Empty along other than last axis.∊ Nested array.~ Numeric data.- Character data.+ Mixed character and numeric data.∇ ⎕OR object.# array of refs.]display 'ABC' (1 4⍴1 2 3 4).→-----------------.| .→--. .→------. || |ABC| ↓1 2 3 4| || '---' '~------' |'∊-----------------'

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

Saved successfully!

Ooh no, something went wrong!