On 10/04/2012, at 7:59 AM, john skaller wrote: > Dang .. this works! > > //// > fun apply[t,n] (i:int,a:array[t,n]) => a.[i]; > > val x = 11,22,33,44; > println$ 2 x;
BTW: the idea here is that "2" is a projection function. So writing x.2 is just reverse application. Of course here 2 isn't really a function. Anyhow, the reason I'm looking at this stuff is that I'm working on the tutorial and got up to arrays. This really brings out the "easy of use" thing. -- john skaller skal...@users.sourceforge.net http://felix-lang.org ------------------------------------------------------------------------------ For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 _______________________________________________ Felix-language mailing list Felix-language@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/felix-language