"Henry Rich" <[EMAIL PROTECTED]> wrote:
> Produce an expression in which >"0 produces a different result
> than plain > does.  Excluded from consideration are:
>
> 0. interpreter bugs
> 1. performance considerations & special code
> 2. anything related to the atomic rep of the verb, for example
>    its display form
>
> The point is to find an example of how applying a rank of 0
> to a verb that already has rank 0 properly changes the result.

My own pet peeve for years has been this one:
   ?. [ 10#10
6 5 9 2 4 9 0 7 0 4
   ?."0 [ 10#10
6 6 6 6 6 6 6 6 6 6

Monadic ?. is defined as rank 0, but for it to have any kind
of useful semantics, the interpreter must treat it as if it has rank _
which is of course obviated by explicitly assigning rank 0.
As far as I know, this is the only primitive J verb which is impossible
to write as a script because of this anomalous behavior.
(OK, I guess monadic ". might take some finesse too,
when evoking local variables).

-- Mark D. Niemiec <[EMAIL PROTECTED]>

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

Reply via email to