If that is what you want, here is another approach:
({.,({.,.{:)@}.)":@<"0 'HIJ'
┌─┐
│H│
└─┘
┌─┐┌─┐
│I││J│
└─┘└─┘
If you want extra spaces somewhere you could insert them in a variety of
ways.
Thanks,
--
Raul
On Sat, Oct 4, 2014 at 8:28 AM, Linda Alvord <[email protected]>
wrote:
> Aha! It can be done. Thanks.
>
> Linda
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Aai
> Sent: Saturday, October 04, 2014 5:41 AM
> To: [email protected]
> Subject: Re: [Jprogramming] How can I I box items in an array
>
> Ok , in this particular case:
>
> (<<<3)&{@}.@}:@|:^:2 ": 2 2$ ]`(''"_)@.(' '&=&>)L:1 <&.> 'H IJ'
> --┐
> │H│
> L--
> --┐--┐
> │I││J│
> L--L--
>
>
>
> On 04-10-14 04:00, Linda Alvord wrote:
> > What I would like to do is box the three letters in a so the boxes do not
> > touch each other.
> >
> > ]A=:2 2$'H IJ'
> > H
> > IJ
> > ]B=:<"0 A
> > --T-┐
> > │H│ │
> > +-+-+
> > │I│J│
> > L-+--
> > ]C=:<"0 B
> > ----T---┐
> > │--┐│--┐│
> > ││H│││ ││
> > │L--│L--│
> > +---+---+
> > │--┐│--┐│
> > ││I│││J││
> > │L--│L--│
> > L---+----
> > ]D=:(<'') (< 0 1)}C
> > ----T---┐
> > │--┐│ │
> > ││H││ │
> > │L--│ │
> > +---+---+
> > │--┐│--┐│
> > ││I│││J││
> > │L--│L--│
> > L---+----
> > >D
> > --┐
> > │H│
> > +-+
> > │ │
> > L--
> >
> > --┐
> > │I│
> > +-+
> > │J│
> > L--
> >
> > The result should have only three boxes. It should look llike D, but
> without
> > the outer square of 4 smaller squares. I thought it would be easy, but:
> >
> > Linda
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
>
> --
> Met vriendelijke groet,
> @@i = Arie Groeneveld
>
> ----------------------------------------------------------------------
> 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