Sure, it works for this _one_ case, through the f. I'm sure there are other
cases that only the implementor knows about and will reveal in his own time,
like #^:_1 seemed to have been.

The general foo!.c will have to go into the nice-to-have pile. hiho.

------------------------------------------------------------------------
|\/| Randy A MacDonald   | APL: If you can say it, it's done.. (ram)
|/\| [EMAIL PROTECTED]  |
|\ |                     | The only real problem with APL is that
BSc(Math) UNBF'83        | it is "still ahead of its time."
Sapere Aude              |     - Morten Kromberg
Natural Born APL'er      | Demo website: http://156.34.89.225/
-----------------------------------------------------(INTP)----{ gnat }-

----- Original Message ----- 
From: "Miller, Raul D" <[EMAIL PROTECTED]>
To: "Programming forum" <[email protected]>
Sent: Wednesday, January 10, 2007 10:45 AM
Subject: RE: [Jprogramming] Re: Programming Digest, Vol 16, Issue 23


Randy A MacDonald  wrote:
> If only we could change the fill element with a hook into
!.(Custom)...
>    a expand!._1 b
> 1 2 _1 3 _1 4

Using the definition of expand which comes with J:

   a=: 1 1 0 1 0 1
   b=: 1 2 3 4
   a expand f.!._1 b
1 2 _1 3 _1 4

-- 
Raul

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