Raul wrote:

   fac2a=: */@ >@, @ { @ (<@(1,*/\)/.~) @ q:

Since the inverse of  q:  is  */  you may reduce  */@[EMAIL PROTECTED]:  to  
f&.q:  like
so:

   fac2b=:  >@, @ { @ (<@(1,*/\)/.~) &. (q:"1)

(perhaps the inverse of  q:  should be changed to   */"1  ?)

I still don't understand why monad  {  produces boxes; perhaps to be
consistent with its (necessarily) boxed input?  In this case consistency is
a hindrance; in almost every use I've seen (including this one) we open the
result of  {  in the end.  

Moreover, the boxes conflict (in my estimation) with the spirit of J, where
homogenous rectangular arrays are the norm, and boxes only used for the
exceptions, where homogeneity and rectangularity is not an option.   But, by
definition,  >@{  is homogenous and rectangular.

(Of course I understand that we are now constrained by backwards
compatibility)

-Dan

-- 
View this message in context: 
http://www.nabble.com/Fitting-factors-of-positive-integers-tp14659088s24193p14674442.html
Sent from the J Programming mailing list archive at Nabble.com.

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

Reply via email to