Hey Skip,

I don't think such a creature can be created in a meaningful way with J because 
it would have a combination of different types in the same array. In your 
example it looks like you would have integers in the first row and then a box 
in the second row and that can't happen.

As Raul points out you can create that 'picture' using characters if you want, 
but it can't really exist in J.

    9 9 $ t
16 26 26 26 26 26 26 26 18
25 32 32 48 32 49 32 32 25
25 16 26 26 26 26 26 18 25
25 25 32 50 32 51 32 25 25
25 25 16 26 26 26 18 25 25
25 25 25 52 32 53 25 25 25
25 25 22 26 26 26 24 25 25
25 22 26 26 26 26 26 24 25
22 26 26 26 26 26 26 26 24
   a.{~9 9$t
┌───────┐
│  0 1  │
│┌─────┐│
││ 2 3 ││
││┌───┐││
│││4 5│││
││└───┘││
│└─────┘│
└───────┘
 
Or as a variation on Raul's integer version, you could do this with characters.
    ,.'  0 1 ';<,.' 2 3';<<'4 5'
┌───────┐
│  0 1  │
├───────┤
│┌─────┐│
││ 2 3 ││
│├─────┤│
││┌───┐││
│││4 5│││
││└───┘││
│└─────┘│
└───────┘
  
Cheers, bob 

> On Nov 15, 2016, at 10:10 PM, Skip Cave <[email protected]> wrote:
> 
> ┌───────┐
> │  0 1  │
> │┌─────┐│
> ││ 2 3 ││
> ││┌───┐││
> │││4 5│││
> ││└───┘││
> │└─────┘│
> └───────┘

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to