'e' e. ,'e'
1
The character was found in the list.

   (<'e') e. <,'e'
0
The box did not match anything.   There was only one thing that could be
matched.

On Dec 24, 2017 18:12, "Nick S" <[email protected]> wrote:

> I worried about that, but the read is completing.  I think that "within a
> script" would mean that if I had immediate code in an ijs file I can't
> pause the load to read from the keyboard.
>
> I understand the point, and the fix worked.  But I thought I had tested for
> rank mismatch when I did this:
>
>   (1!:1 (1)) e. 'e'
>
> e
>
> 1
>
>
> also
>
>
>
>    (,'e') e 'e'
>
> 1
>
>    ('e') e. ,'e'
>
> 1
>
>
> And I have a whole bunch more .e stuff that works whether the left or right
> arguments are
>
> scalar or length 1 vectors but then I reread the documentation (for like
> the fourth time, that was where I first got that it used .e) and it boxes
> your terms if they are
>
> not boxed.
>
>
> boxifopen=:<^:(L.=0:)
>
>
>    ('e') e.&boxifopen 'e'
>
> 1
>
> (,'e') e.&boxifopen 'e'
>
> 0
>
>  (,'e') e.&boxifopen ,'e'
>
> 1
>
> The fix works.  I guess I didn't expect .e to treat things in boxes
> differently than it would treat immediate terms, other than unboxing them.
> So this has nothing to do with select one way or the other.  Sigh.  Thanks
> for the help again.
> --
> Of course I can ride in the carpool lane, officer.  Jesus is my constant
> companion.
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to