R.E. wrote:
>    </} 1 2 3,:2 2 2
>  2 2 3

Linda wrote:
>     123 </} 1 2 3,:2 2 2
>  123 2 3
>    2 2 2

R.E. Boss' original example:

    </} 1 2 3,:2 2 2

worked because the verb  </}  was used monadically.  Your examples:

   123 </} 1 2 3,:2 2 2

differ because you're using the verb  </}  dyadically.

In short,  </} y  has a different definition than  x </} y  and so the two
phrases will produce different results even when they happen to have the
same  y  .  This is the same reason  123 # 1 2 3,:2 2 2  and  # 1 2 3,:2 2
2  produce different results, or 5-2 and - 2 produce different results.  

Now, if you want to know _why_  123 </} 1 2 3,:2 2 2  produces 123 2 3 ,: 2
2 2 , you'll have to read the Vocabulary entry for  f}  (and the caveat I
recently offered) [1,2].

-Dan


[1]  Definition  f}  (as opposed to  m}  ):
     http://jsoftware.com/help/dictionary/d530v.htm

[2]  In  f} y , f addresses the indices of the _ravel_ of y, 
     even though the Vocabulary doesn't say that:
     http://www.jsoftware.com/pipermail/programming/2014-July/037990.html


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

Reply via email to