This is a fun, geeky post for those interested in functional programming. Sometimes you have flat data where there is hierarchy expressed in the data, but the form of the data is flat. You may need to transform this data into a hierarchy, such as an XML tree. For instance, you may have the following data: Heading [] headings = new [] { new Heading { Level = 1, Text = "Intro" }, new Heading { Level = 2, Text = "Hello" }, new Heading { Level = 2, Text = "Summary" }, new Heading { Level = 1, Text =
Read More...