MoeOrganization / moe

An -OFun prototype of an Ultra Modern Perl 5
http://moe.iinteractive.com
MIT License
279 stars 46 forks source link

Add support for topic variable ($_) in some Array operations #97

Closed stevan closed 11 years ago

stevan commented 11 years ago

The topic ($_) should automatically be available in certain Array operations. That way we can do this:

@a.map(-> { $_ + 2 });

rather than having to do this

@a.map(-> ($x) { $x + 2 });