Without looking studying the sentence evaluator, I expected

   +.|.@
(+. |.)@

to be identical to
   +.(|.@)
|.@+.


> Date: Mon, 10 Dec 2012 15:41:52 -0500
> From: Raul Miller <rauldmil...@gmail.com>
> To: programm...@jsoftware.com
> Subject: Re: [Jprogramming] Just for fun, verb cross
> Message-ID:
>         <CAD2jOU8iKSKDjgPuPf26_wqUSd3QOgscqLcXkCtMC0xZj2o
> +o...@mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
> 
> For what it's worth, here's a parenthesis free implementation of my
> two variant definitions of cross (and note that I am using what is
> probably an unfamiliar J idiom here -- please feel free to ask for an
> explanation, if I am not making sense):
> 
> selch=: #"0"1
> orflp=: +.|.@
> cross1=: ,@selch~ = orflp
> 
> cross2=: ,@selch~ =@i.@# orflp


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

Reply via email to