Yes this is one of the displays and quite good one

There is a problem with this one it increases the size of the matrix a lot
when using grid.

The other one contains nesting of cells and as I am going to use grid I
would need to use a falldown cells for the display and I kind of like that
better but it may prove complicated in workings

2007/10/21, Raul Miller <[EMAIL PROTECTED]>:
>
> Is this what you are looking for?
>
> p=:4 3$;:'p0 p0 p0 p1 p1 p1 p0 p1 p0 p1 p0 p0'
> s=: ;:'s0 s1 s2 s3'
> t=: ;:'t0 t1 t2'
>
> left=: [: , ["0/
> rght=: [: , ]"0/
>
> splayleft=:2 :0
>    L=: m left n
>    R=: m rght n
>    D=: R <@,"0&/:&(L&/:) y
>    L D} a:$~,~#y
> )
>
> splayrght=:2 :0
>    L=: m left n
>    R=: m rght n
>    D=: L <@,"0&/:&(R&/:) y
>    R D} a:$~,~#y
> )
>
> example use:
>    s splayleft t ,p
>    s splayrght t ,p
>
>
> That's not exactly what you have, but the way you have it
> seems more complicated, to me.
>
> --
> Raul
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>



-- 
Björn Helgason, Verkfræðingur
Fugl&Fiskur ehf, Þerneyjarsund 23, Box 127
801 Grímsnes ,t-póst: [EMAIL PROTECTED]
Skype: gosiminn, gsm: +3546985532
Landslags og skrúðgarðagerð, gröfuþjónusta
http://groups.google.com/group/J-Programming


Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans

góður kennari getur stigið á tær án þess að glansinn fari af skónum
          /|_      .-----------------------------------.
         ,'  .\  /  | Með léttri lund verður        |
     ,--'    _,'   | Dagurinn í dag                     |
    /       /       | Enn betri en gærdagurinn  |
   (   -.  |        `-----------------------------------'
   |     ) |        (\_ _/)
  (`-.  '--.)       (='.'=)
   `. )----'        (")_(")
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to