Oops, I omitted f. How to write it tacitly? Although from the recent
messages I ought to solve this myself.
match_in_range =: f =: 1 : (':'; 'u >: | x-y')
On Mon, 2010-12-27 at 22:20 +0800, [email protected]
wrote:
> Message: 4
> Date: Sun, 26 Dec 2010 23:55:26 -0500
> From: David Ward Lambert <[email protected]>
> Subject: Re: [Jprogramming] Matches within a range
> To: [email protected]
> Message-ID: <1293425726.1897.14.ca...@lambertdw>
> Content-Type: text/plain; charset="UTF-8"
>
> list =: 133 139 153 159 165
> tolerance =: 7
> center =: 153
> list tolerance f center
> 0 0 1 1 0
>
> list tolerance(<:&)@|@-center
> 0 0 1 1 0
>
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm