On Saturday, April 12, 2014 7:46:53 PM UTC-4, Stefan Karpinski wrote: > > The issue is good, thanks. > > Another option would be to return a tuple of (line, nl) and just let > people either ignore the newline part or use it. Then doing println(line) > would standardize line endings while print(line,nl) would reproduce the > input exactly. >
I like this, I think, but what would be the effect on something like. mapreduce(S->T,(X,Y)->Z,A,readlines()) # readlines? readlns? something else? Are you saying readlines() returns arrays of tuples instead of strings, what happens to S,T,X,Y,Z,A? Do T and Z become encumbered (less compact) from dealing with a tuple instead of a string?
