On 4/17/07, Raul Miller <[EMAIL PROTECTED]> wrote:
On 4/17/07, Terrence Brannon <[EMAIL PROTECTED]> wrote:
> ok, here is how I tried to follow   2 4 { 3 1 4 1 5 9
>
> left noun rank = 1 , right noun rank = 1

Yes.

> left verb rank = 0  , right verb rank = 1

As I understand it:
   {"{
{"1 0 _

well if you type
{ b . 0
into the interpreter you get out
_ 1 0 and so monadic rank is infinite, left rank is 1, right rank is 0


left verb rank is 0
right verb rank is _

> left rank = 0         , right rank = 1

If you mean rank for this operation, yes.

> left frame = 2        , right frame = empty

I'd make that ,2 for my left frame, but yeah.

What does ,2 do? Create a rank-1 array?


> common frame is empty

In other words, you can basically ignore rank when figuring
out the results of this operation.

"J for C" never taught to ignore rank or frames. In this section
http://www.jsoftware.com/help/jforc/loopless_code_i_verbs_have_r.htm#_Toc141157994
it is stated that "J requires that one of the frames be a prefix of the other"
so is an empty list a prefix of the list consisting of 2? It has to be
or things wont work.

So the common frame is ""   which means empty list in J.
the length of the common frame is 0

So continuing in "J for C" we see:
<quote>If we look at the cells of the operands relative to this common
frame (i. e. the (-rcf)-cells), we see that for the operand with the
shorter frame, these cells are exactly the rank that will be operated
on, while for the operand with the longer frame, each (-rcf)-cell
contains multiple operand cells.</quote>

So, for the right operand the 0 cells are exactly the rank to be
operated on. While each 0 cell on the left contains multiple operand
cells... or at least it should, per the book. So I am confused on the
left and right ("Clowns to the left of me... jokers to the right...
here I am stuck in the middle with verb...")
(1) the right operand is a rank-1 array.How are 0 cells exactly the
rank to be operated on?
(2) the left operand is a rank-1 array. How does it contain multiple
operand cells?


The verb's definition should
be all you need.

More specifically: use each numeric index on the left to
choose an item from the right.

I'm suspicious of this advice :) I should be able to use J's implicit
looping and framing to figure out how this thing works.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to