bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-apl] Cell grid in ⎕CR output?


From: Elias Mårtenson
Subject: [Bug-apl] Cell grid in ⎕CR output?
Date: Wed, 26 Mar 2014 21:35:25 +0800

Would it be possible to add a ⎕CR mode where matrices are displayed in a grid?

In other words, instead of displaying 3 3⍴⍳9 like this:

┌→────┐
↓1 2 3│
│4 5 6│
│7 8 9│
└─────┘

I'd like it to be displayed like this:

┌→┬─┬─┐
↓1│2│3│
├─┼─┼─┤
│4│5│6│
├─┼─┼─┤
│7│8│9│
└─┴─┴─┘

I was looking at the code, and it actually seems slightly harder to do than I expected since the frame around a matrix is drawn separately from the actual content, and the grid-style requires that the frame changes depending on the alignment of the actual cells inside the matrix.

However, I still would like to ask if there is a way to do it, as there are cases where the grid notation is much more clear.

Regards,
Elias

reply via email to

[Prev in Thread] Current Thread [Next in Thread]