thegooglecodearchive / luaforwindows

Automatically exported from code.google.com/p/luaforwindows
0 stars 0 forks source link

Include LibLinq #54

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi!

I've recently tried out a C#-like LINQ library from WoW addons:
http://www.curse.com/addons/wow/liblinq-1-0
http://www.wowace.com/addons/liblinq-1-0/

It allows to perform such queries as:

tostring(Enumerable.From({ 1, 2, 3, 4 }):Where(function(x) return x % 2 == 0 
end)) == "[2, 4]"

or even more C#-style

tostring(Enumerable.From({ 1, 2, 3, 4 }):Where("x => x%2 == 0")) == "[2, 4]"

Perhaps, that would be a cool battery to include?

Original issue reported on code.google.com by d.ledent...@gmail.com on 7 Feb 2012 at 11:59