The title is self-explaining, post here lines that you find elegant for whatever reason, be it that it shows the power of a language you like, that it shows how smart you are, or it's one of those obfuscated pieces of code without line breaks... Whatever.
Take a look at this C# for starters. Bear in mind that all this is 100 per cent strongly statically typed!
Code:
foreach(var result in new[] {
new {
fileName = fileName + ".1" + extension,
data = Result1
},
new {
fileName = fileName + ".2" + extension,
data = Result2
} })
{ /* ... */ }
Beautiful!