Swift techniques to filter duplicates out of large JSON arrays

This post from Aleksandar Vacić demonstrates how the standard library reduce function can be used to gain vast performance improvements when writing code which filters values.