[Jprogramming] Error with select? Maybe someone can explain this to me.
bill lam
bbill.lam at gmail.com
Tue Dec 26 02:44:58 UTC 2017
which sentence?
On Dec 26, 2017 10:39 AM, "Linda Alvord" <lindaalvord36 at outlook.com> wrote:
> On an android phone my result was 0.
>
> On laptop with windows I got the result of 1
>
> Linda
>
> -----Original Message-----
> From: Programming [mailto:programming-bounces at forums.jsoftware.com] On
> Behalf Of Henry Rich
> Sent: Sunday, December 24, 2017 8:38 PM
> To: Programming forum <programming at jsoftware.com>
> Subject: Re: [Jprogramming] Error with select? Maybe someone can explain
> this to me.
>
> '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" <simicich at gmail.com> 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
> > https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsiteproxy.myworkereeez.workers.dev/%3A443%2Fhttp%2Fwww.j
> > software.com%2Fforums.htm&data=02%7C01%7C%7C3c6114f80e914b9da1d608d54b
> > 381428%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636497626582773703
> > &sdata=gJQQODxP4U2%2B4bYndEj5HjryzTSlye6whzD7TttQwIo%3D&reserved=0
> ----------------------------------------------------------------------
> For information about J forums see https://nam01.safelinks.
> protection.outlook.com/?url=https%3A%2F%2Fsiteproxy.myworkereeez.workers.dev/%3A443%2Fhttp%2Fwww.jsoftware.
> com%2Fforums.htm&data=02%7C01%7C%7C3c6114f80e914b9da1d608d54b381428%
> 7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636497626582773703&sdata=
> gJQQODxP4U2%2B4bYndEj5HjryzTSlye6whzD7TttQwIo%3D&reserved=0
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
More information about the Programming
mailing list