This repository contains a Swift 2.2 implementation of the third part in Dave Thomas' Data Munging programming exercise. The exercise, known as a kata, focuses on extracting information from text files, whose data are arranged in similar but different formats.
The kata's third challenge is to apply the DRY principle to two data munging programs written earlier during the kata. I managed to "not repeat myself" by creating the higher-order function seen in munging.swift, which is similar to a template method but does not require subclassing. This function is invoked from main.swift once for each data file.