VBCorLib icon indicating copy to clipboard operation
VBCorLib copied to clipboard

Consider adding LINQ-like Lambdas

Open sancarn opened this issue 3 years ago • 1 comments

Just a heads up, we've made a Lambda class which could be useful in VBCorLib also, it should be compatible.

It would allow code similar to:

set newNumbers = numbers.Where(linq("$1 mod 2 == 0").OrderBy(linq("$1"));

It should be usable in VB6 as it is. Bear in mind our current parser doesn't manage parameter names, but with a little modification we should be able to change that to something more like linq: (p1,p2) => p1*p2.

sancarn avatar Feb 23 '21 00:02 sancarn

That's certainly an interesting idea. I'll have to check this out.

kellyethridge avatar Feb 23 '21 19:02 kellyethridge