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

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

Reply via email to