|.@,.@;~/<"1 i.3 2

R.E. Boss


> -----Original Message-----
> From: Programming [mailto:[email protected]]
> On Behalf Of 'Pascal Jasmin' via Programming
> Sent: 16 November, 2016 14:15
> To: [email protected]
> Subject: Re: [Jprogramming] Nested Boxes
> 
> I had similar
> 
> (; <@<)/ i.3 2
> 
> for requested shape, I think
> 
> (; ,.@<@<)/ i.3 2
> 
> 
> 
> ----- Original Message -----
> From: Erling Hellenäs <[email protected]>
> To: [email protected]
> Sent: Wednesday, November 16, 2016 3:05 AM
> Subject: Re: [Jprogramming] Nested Boxes
> 
> Here is something similar you can do:
> 
>     ([,[:<])/<"1[ i. 3 2
> ┌───┬───────────┐
> │0 1│┌───┬─────┐│
> │   ││2 3│┌───┐││
> │   ││   ││4 5│││
> │   ││   │└───┘││
> │   │└───┴─────┘│
> └───┴───────────┘
>   /Erling
> 
> 
> On 2016-11-16 08:35, robert therriault wrote:
> > 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
> 
> 
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to