You can use #0 for the first argument. `{|x| x * 3}` could be `{ #0 * 3 }`, but it is slower than `{|x| x * 3}` due to `arguments` in moe is a REAL array.
在 2012年4月26日星期四UTC+8下午10时17分41秒,JeanHuguesRobert写道: > > I like the concise syntax for lambda, including f{stuff}. Maybe > f(a,b){stuff} could behave like Ruby's? > > Also: {|x| x * 3} could be { it * 3 } where "it" stands for the single > parameter of the lambda. > > Le jeudi 26 avril 2012 14:26:20 UTC+2, Belleve Invis a écrit : >> >> I've made it for years. Mostly inspired by Python and Haskell. >> >> Doc: >> http://be5invis.github.com/moescript/ >> > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en