Hi,

I like the way ,:!.f works. It's quite neat.

What would be even better is if > open behaved a little like ,: does with
it's fill conjunction.

   e.g.
   f=:_.
   [A=:(i.3),:!.f(i.5)
0 1 2 _. _.
0 1 2  3  4

   we can extend that further with
   [A=:A,!.f(i.7)
   (but I suppose we've got a full copy of the existing A each time if we
were worried about performance.)

   In any case, something like this just looks more elegant:

   L=:(i.3);(i.5);(i.7)
   > L
0 1 2 0 0 0
0 1 2 3 0 0
0 1 2 3 4 5

   >!.f L
|domain error

any ideas?  I migh play with something like this later: get count, get max
count of each boxed list. Prebuild filled array. Utilise special code form
of ammend... but there could be a loop  :(

thanks,
-Steven
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to