I am writing lambda function. I need filter data at first step and than do dome operation on them (for start simply print on the screen. I wrote next code:

MySQLTablesRange.filter!(a=>a[0].coerce!string.canFind("_")).each!(a => 
to!int(a[0].coerce!string.split("_")[1]).writeln);


But it's seem that each do not handle any data. I tested if data is corectly filtered and next code successfully print it's output.

auto t = MySQLTablesRange.array.filter!(a=>a[0].coerce!string.canFind("_"));
t.each!(a=>a[0].coerce!string.writeln);

But what is wrong with first code?

Reply via email to