You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following example returns... Unknown identifier 'x' (at index 5).
vartarget=newInterpreter(InterpreterOptions.Default|InterpreterOptions.LambdaExpressions);varlistInt=target.Eval<List<int>>("list.Select(n => n > x)",newParameter("list",new[]{1,2,3}),newParameter("x",1));Assert.AreEqual(new[]{2,3},listInt);
The text was updated successfully, but these errors were encountered:
I fixed the issue, but a limitation remains: when there's a nested lambda, it's not possible to access the initial lambda parameter. For example, you can't write this:
vartarget=newInterpreter(InterpreterOptions.Default|InterpreterOptions.LambdaExpressions);varlist=newList<string>{"ab","cdc"};target.SetVariable("myList",list);// the str parameter can't be used in the nested lambdavarresults=target.Eval("myList.Select(str => str.Select(c => str.Length))");
Following example returns...
Unknown identifier 'x' (at index 5).
The text was updated successfully, but these errors were encountered: