In Haskell we have the function
map (a -> b) -> [a] -> [b]
to change the type of a Collection using a function.
Is there something similar in C#?
Or what else is the fastest way to put a complete collection of KeyValuePairs into a debug message, for example?
I thought of sth like
debugmsg("http response is " + service.HttpResponseHeaders
.Map<string>((k, v) => k + "->" + v)
.Aggregate((s, sx) => s + "," + sx)
+ ". ");