[Jprogramming] Just for fun, verb cross

David Ward Lambert b49P23TIvg at stny.rr.com
Mon Dec 10 21:01:55 UTC 2012


Without looking studying the sentence evaluator, I expected

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

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


> Date: Mon, 10 Dec 2012 15:41:52 -0500
> From: Raul Miller <rauldmiller at gmail.com>
> To: programming at jsoftware.com
> Subject: Re: [Jprogramming] Just for fun, verb cross
> Message-ID:
>         <CAD2jOU8iKSKDjgPuPf26_wqUSd3QOgscqLcXkCtMC0xZj2o
> +oQ at 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=: , at selch~ = orflp
> 
> cross2=: , at selch~ =@i.@# orflp




More information about the Programming mailing list