On Fri, May 22, 2009 at 9:31 AM, Viktor Cerovski
<[email protected]> wrote:
> The way conjunctions are implemented now is as a thinly
> disguised pair of parametric adverbs:
>
> u & v === u (& v) === v (u &)

Put differently, when you curry a conjunction,
you get an adverb.

I mean, yes, we can treat conjunctions almost as
if they were adverbs.  But this does not mean that
I would always want that:

   posdif=: '(x >. y) - (x <. y)' (4 :)

PosDiff =: 0 (4 :)
 larger  =. x >. y
 smaller =. x <. y
 larger - smaller
)

X=: * (+/ .)
   1 2 3 X 4 5 6
32

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

Reply via email to