And how about this description of At ? Is it correct? We seem to add a lot of redundant operations when we insert At? http://code.jsoftware.com/wiki/Vocabulary/atco Split y, apply v to each cell instead of to the whole of y? An extra collect results and add fill?
/Erling

On 2016-08-03 21:49, Raul Miller wrote:
Yes, and the @:]"_ is redundant for any and all verbs u1 u2 u3 and u4.
And ([: u1 [:u2 u3@:u4) is another example equivalent...

Moreover, for a good example, the choice of u1 u2 u3 and u4 also matters.

More generally, though, it's good to focus on the practical problem
solving issues first and then bring the language to bear on solving
that problem. Doing it the other way around leads to bad language
decisions.

Cheesy examples can be useful in some contexts (for example, in
debugging), but they tend to be rather bad for language design.

That said, note that getting into real examples also allows rephrasing
based on the meaning of what is being dealt with.

For a hopefully-not-too-cheesy example, consider:

   u1=: -&1
   u2=: ^&0.5
   u3=: +&1
   u4=: ^&2

Since u1 @: u2 @: u3 @: u4 (or other variants) winds up being an
algebraic expression, you can use algebra to rephrase the expression.
But this is a good thing.

Thanks,


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

Reply via email to