I found nice little one example of Scala today. Something like:
(1 to 100) map { x =>
(x % 2, x % 6) match {
case (0,0) => "First"
case (0,_) => "Second"
case (_,0) => "Third"
case _ => x toString
}
} foreach println
And i wonder if I could do something similar in C#. I tried to search on my own but it's hard since I don't know name of this expression. It seems pretty useful. So can I do this in C#?