On 05.07.19 20:49, Samir wrote:
As a follow-on to my earlier question, is there a way to pass a variable to the `map` function that specifies the column, rather than hard-coding it?  I'm thinking of something like:


You can't do that with the string style, because the string is turned into a function inside of `map`. Your `column` isn't visible there.

It works when you pass an actual callable instead, e.g. a lambda:

p.map!(a => a[column]).maxElement.writeln;

Reply via email to