Screen-Cast: Grouping Operations When Writing Recursive Pure Functional Transformations
Return to the RPFT Screen-Cast SeriesGrouping is a form of aggregation that is pretty important when writing Recursive Pure Functional Transformations (RPFT). When fabricating a transformation, you often need to put together intermediate results – it often is not possible to write a transform from the source data directly into the final results. You need to first transform the source into some intermediate form that then can be further transformed per your needs. Grouping is often required in these intermediate transforms. There are two varieties of grouping:
- GroupBy groups all like items in a collection together.
- GroupAdjacent groups all like items that are adjacent to each other.
As it turns out, in writing document-centric transfroms, we use GroupAdjacent more often than GroupBy. This screen-cast examines both forms of grouping.