bug-apl
[Top][All Lists]
Advanced

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

nested array formating is inconsistent


From: Hans-Peter Sorge
Subject: nested array formating is inconsistent
Date: Thu, 26 Aug 2021 11:29:29 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

Hi,


⍝ just a simple matrix

      i∘.+i←¯1+⍳2
0 1
1 2

⍝ make it an element
      ⎕ ← e ← ⊂i∘.+i←¯1+⍳2
 0 1
 1 2


⍝ matrix of matrixes....
      2 2 ⍴ e
 0 1   0 1
 1 2   1 2

 0 1   0 1
 1 2   1 2


⍝ enclose the matrix of matrixes indents nicely ...
      ⊂ 2 2 ⍴ e
  0 1   0 1
  1 2   1 2

  0 1   0 1
  1 2   1 2


⍝ display of enclose each 'sub'-matrix misses space line
      ⊂¨2 2 ⍴ e
  0 1   0 1
  1 2   1 2
  0 1   0 1
  1 2   1 2

Best Regards
Hans-Peter

reply via email to

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