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