On Mon, Mar 14, 2011 at 9:47 PM, Henry Rich <[email protected]> wrote:
> Sometimes the interpreter executes a verb twice on an operand - usually
> when two different executions returned different shapes/types and it's
> easier to reexecute than to use the previous result.
It also sometimes executes verbs on dummy arguments you didn't supply
in order to guess the shape of the result of a ranked verb for empty
arrays, eg.
$ 3 :('leak=:42;<y';'i.3 5 4')"0 $0
0 3 5 4
leak
+--+-+
|42|0|
+--+-+
I wonder, does it also execute verbs on dummy arguments to guess the
neutral element of a verb (for the insert adverb)?
Ambrus
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm