Hi, actually ⎕PW is considered after ⎕CR. ⎕CR of a single line creates a 3 line APL matrix: ⎕PW←30 ⎕PW←30 29⎕CR ⍳15 ┏→━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ━━━━━━┓ ┃1 2 3 4 5 6 7 8 9 10 11 12 13 14 15┃ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ━━━━━━┛ ⍴ 29⎕CR ⍳15 3 37 Since 37 > ⎕PW the standard APL output breaks every line of the matrix at a suitable place before ⎕PW (so that, for example, numbers are not cut in the middle). If I understand you correcly then you would like to it to look like this (just change the font setting in your email client to make it look nicer): ┏→━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ 1 2 3 4 5 6 7
8 9 10 11 12 ↲ ┃
┃ ↳ 13 14 15
┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
The problem with this is that it is not properly working recursively. If a sub-item is also a large matrix and wrapped at ⎕PW then it wont fit into the containing matrix. An boxed output is normally only used when you have problems with nested values, so the sub-items are almost always nested. /// Jürgen On 01/31/2017 04:00 PM, Elias Mårtenson
wrote:
|
- [Bug-apl] Formatting of large arrays Elias Mårtenson
- Re: [Bug-apl] Formatting of large arrays Juergen Sauermann
- Re: [Bug-apl] Formatting of large arrays Peter Teeson
- Re: [Bug-apl] Formatting of large arrays Elias Mårtenson
- Re: [Bug-apl] Formatting of large arrays Juergen Sauermann
- Re: [Bug-apl] Formatting of large array... Elias Mårtenson
- Re: [Bug-apl] Formatting of large ... Juergen Sauermann
- Re: [Bug-apl] Formatting of la... Juergen Sauermann
- Re: [Bug-apl] Formatting o... Elias Mårtenson