[Jprogramming] Boxes of different lengths

Stefano Lanzavecchia stf at apl.it
Tue Jan 10 22:52:22 HKT 2012


> > +---+-------+---------++-----+---+
> > |5 0|7 8 9 2|2 5 5 5 3||8 0 0|5 6|
> > +---+-------+---------++-----+---+
> >
>     a=.0 0 1 1 1 1 2 2 2 2 2 4 4 4 5 5
>     a=.a,:5 0 7 8 9 2 2 5 5 5 3 8 0 0 5 6
>     a
> 0 0 1 1 1 1 2 2 2 2 2 4 4 4 5 5
> 5 0 7 8 9 2 2 5 5 5 3 8 0 0 5 6
>    (0{a)</.1{a
> ----T-------T---------T-----T---┐
> │5 0│7 8 9 2│2 5 5 5 3│8 0 0│5 6│
> L---+-------+---------+-----+----
> 
> http://www.jsoftware.com/help/dictionary/d421.htm
> Enjoy!

Almost... I can see now that you'd like an empty slot for the skipped key. I
was a bit too hasty in my reply.
--
Stefano



More information about the Programming mailing list