[Jprogramming] Re: Function-level programming

Raul Miller rauldmiller at gmail.com
Wed Feb 28 09:22:17 HKT 2007


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

   train=: `:6
   substU=: [^:((,'u') -: ]) L:_1 0
   (myfn`'' substU ({. at u , {:@u)`'')train
{. at myfn , {:@myfn
   (+/`'' substU ({. at u , {:@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


More information about the Programming mailing list