That is very nice! I like to write it as;

   gv=. `'' NB. Gerund from verb

   (myfn gv substU ({. @ u , {:@u) gv)train
[EMAIL PROTECTED] , {:@myfn

but, I would really like to write it as,

   myfn AdvDef ({. @ u , {:@u)
[EMAIL PROTECTED] , {:@myfn

where AdvDef is a tacitly defined conjunction.  Can you?

Either way, I hope Neville Holmes can resume writing his book.


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Raul Miller
Sent: Tuesday, February 27, 2007 8:22 PM
To: Programming forum
Subject: Re: [Jprogramming] Re: Function-level programming


Or, for people who have disabled x. y. style names:

   train=: `:6
   substU=: [^:((,'u') -: ]) L:_1 0
   (myfn`'' substU ([EMAIL PROTECTED] , {:@u)`'')train
[EMAIL PROTECTED] , {:@myfn
   (+/`'' substU ([EMAIL PROTECTED] , {:@u)`'')train
{.@(+/) , {:@(+/)

Also, I hope it's obvious that conjunctions could
be handled similarly (at least for verb arguments)
with a substUV which took a gerund pair (representing
new values for placeholders u and v) as its left argument,
and that placeholders beyond u and v are also possible.

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