2006/10/2, Yuvaraj Athur Raghuvir <[EMAIL PROTECTED]>:
Hello,
Came across an interesting snippet in JforC :
m =: 4 : '(x * -.sv) + y * sv =. (#y) $ 1 0' NB. list whose even
members come from x & odd members from y
1 2 3 4 m 5 6 7 8
5 2 7 4
Thought I shall look into the tacit version of m using the tacit generator.
So,
mt =: 13 : '(x * -.sv) + y * sv =. (#y) $ 1 0'
1 2 3 4 mt 5 6 7 8
1 2 3 4
It looks definitely like a bug in 13 :. The returned tacit version has
different semantics from m.
>From my J session, in the linear form,
mt <=> [ (([ * [: -. ]) + *) 1 0 $~ [: # ]
Why is the output of mt different from m?
Am I missing something here?
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm