Hello,

I have a simple requirement - I want to find the average size of the rows in
an array. And I want a simple tacit statement for it.

In doing so I got stuck in finding the boxed representation of the name of
the noun.

--------------------------------------------
This is what I have tried:

   ]a =. 1;2;3;4;5;6
+-+-+-+-+-+-+
|1|2|3|4|5|6|
+-+-+-+-+-+-+

   (7!:5@<'a') % ([EMAIL PROTECTED] a)
10.6667


Since the form looks like a fork, I wanted to  create a tacit form. And I
got stuck!

v =: 3 : '(7!:5 <''y'') % ([EMAIL PROTECTED] y)' NB. simple explicit verb

   v a
10.6667

   v1 =: 13 : '(7!:5 <''y'') % ([EMAIL PROTECTED] y)' NB. use tacit generator
   v1
0 % [EMAIL PROTECTED]       NB. !!!! Why ?? !!!!!

--------------------------------
So,
1) how to get a boxed name representation for a noun so that I can pass it
to the 7!:5 conjunction in a fork?
2) is the behavior of tacit generator correct?

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

Reply via email to