#^:_1 was what I was looking for.

Your solution can be shortened further to
   (i. 10) ([EMAIL PROTECTED] #^:_1 (</.~ I.)) 1 2 3 0 4
+-+---+-----++-------+
|0|1 2|3 4 5||6 7 8 9|
+-+---+-----++-------+

R.E. Boss

-----Oorspronkelijk bericht-----
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens Ewart Shaw
Verzonden: dinsdag 31 oktober 2006 16:53
Aan: Programming forum
Onderwerp: RE: [Jprogramming] Boxing according to a Pattern

On Tue, 31 Oct 2006, R.E. Boss wrote:

> (<@:{~ -.&i./)"_ 1 [:(}.,. }:)[: +/\0&,
>
>     (i.10)((<@:{~ -.&i./)"_ 1 [:(}.,. }:)[: +/\0&,)1 2 3 0 4
> +-+---+-----++-------+
> |0|1 2|3 4 5||6 7 8 9|
> +-+---+-----++-------+
>
> R.E. BOSS

Another possibility:
   (i. 10) ([EMAIL PROTECTED] #^:_1 (</.~ (# [EMAIL PROTECTED]))) 1 2 3 0 4

[hope that's correct: I can't easily paste into my email]
The  [EMAIL PROTECTED] #^:_1  part is just to include any empty boxes.
        -- Ewart Shaw

J.E.H.Shaw   [Ewart Shaw]      [EMAIL PROTECTED]    TEL: +44 2476 523069
  Department of Statistics,  University of Warwick,  Coventry CV4 7AL,  UK
  http://www.warwick.ac.uk/statsdept            http://www.ewartshaw.co.uk
Will read usenet posts up to the first insult (which may be in the Subject)

----------------------------------------------------------------------
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