RM = Raul, DB = me
RM>   (0: a:) (''"_ a:)} ''"_ a:
RM>
RM>   0:`(''"_)`(''"_)} a:
RM> |rank error
RM> |       0:`(''"_)`(''"_)}a:

DB> What you want is:
DB>     'dummy' 0:@:]`(''"_@:])`(''"_@:])} a:

If you load my "doog" script, then this adverb:

           mm =: ('@:'doog ]) } ~

will take a 3 element gerund argument and derive a verb whose monad acts the way you expect:

           0:`(''"_)`(''"_) mm a:


And this:

           am =: 1 : 'm mm : (m })'

given the same argument, will derive verbs whose monad acts the way you expect, and whose dyad has the dyad semantics of v0`v1`v2 } .

You can read about my doog script at http://www.jsoftware.com/jwiki/DanBron/Snippets/DOOG and download it from http://www.jsoftware.com/svn/DanBron/trunk/general/doog.ijs .

I'm considering making all these code manipulation utilities into an addon.

-Dan

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

Reply via email to