On Wed, Jul 11, 2012 at 1:28 PM, Raul Miller <rauldmil...@gmail.com> wrote:
> I should have been using (|~ #)"1 instead of bare (|~ #).

This was wrong.

Here's a working implementation of validIn:

validIn =: (<@(|~ #)"1 _ { ]) *. (|~ #)"1 _ -:"1 [

Example use:
   (#~ validIn&(?5 5$2)) <:(#: [: i. */) 2+5 5

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

Reply via email to