I like these versions (assuming I get the point of the previous examples):

  cartsimp=: ,"0/
  cartbox=: ,&.>/

as they combine basic principles.

On 5/18/07, Dan Bron <[EMAIL PROTECTED]> wrote:

Markus Schmidt-Groettrup wrote:
>  impressive to me is the cartesian product
>     cartesian =: ,"_ _1 "_1 _

Do you find it more or less impressive that J has a primitive for
cartesian product?

    cart =:  {@:,&.<

The monad  {  is neat but this formulation doesn't demonstrate the
loop-abstraction that yours does.

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




--
Devon McCormick, CFA
^me^ at acm.
org is my
preferred e-mail
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to