Your tool is more sophisticated; the one I mentioned is just a simple, but 
effective, way to facilitate using and tracking anonymous component verbs.




________________________________
From: Zsbán Ambrus <[email protected]>
To: Programming forum <[email protected]>
Sent: Wednesday, May 20, 2009 4:07:24 AM
Subject: Re: [Jprogramming] What to say about J to APLers

On Wed, May 20, 2009 at 6:14 AM, Jose Mario Quintana
<[email protected]> wrote:
> We have developed a variety of proprietary tools; perhaps the most important 
> is an old adverb (tv) that allow us to decompose a generic tacit verb v as 
> vn@: ... @:v0@:u and write it as:
>
> v=. [tv
>   <u code>
>   <v0 code>
>   ...
>   <vncode>
> )

The script at http://www.jsoftware.com/jwiki/Scripts/TacitToExplicit 
does something like this.  Try for example this.

  ([: v3@:v2 v1@:v0@:u) ttem
3 : 0
q0=.  u y
p0=. v1  v0 q0
v3  v2 p0
)

That the verb is decomposed to only three lines instead of five is a
readability optimization, it would probably be easy to change the
script so it gives five lines.

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