Re: [Felix-language] operator in

2010-10-28 Thread Rhythmic Fistman
> From: john skaller > Subject: Re: [Felix-language] [felix] operator in >> I'm fine with replacing whilst with while. I've been meaning to do that >> forever. > > Well RF was using the library function while, so it would have broken > code, but I don't think anyone (except me now) is actually

[Felix-language] operator in

2010-10-28 Thread Rhythmic Fistman
> From: john skaller > > On 28/10/2010, at 1:52 AM, Erick Tryzelaar wrote: > >> Don't we have an "isin" operator that does this already? > > >>> I just added "operator in" which lets you say >>> >>> x in C >>> >>> where C is a list or array. > > > I think we did (not sure). But who can remember th

[Felix-language] operator in

2010-10-27 Thread john skaller
I just added "operator in" which lets you say x in C where C is a list or array. Should be extended to varray and avl. Precedence same as comparisons < > etc. Binds to function fun mem[T]: T * C[T] -> bool which I added to List and Array modules. There's a potential parsing conflict with "let .