nlines←{                    ⍝ Number of display lines for simple array.
    {                       ⍝
        (×/⍵)+{             ⍝ # of lines of real data +
            +/+\0⌈⍵-1,¯1↓⍵  ⍝ # of blank lines separating different planes
        }×\¯1↓⍵             ⍝   of the array
    }¯1↓⍴⍵                  ⍝ last axis affects only width of display.
}

code_colours

test script

Back to: notes

Back to: Workspaces