Tag Archives: dictionary

Create a Swift Dictionary from an Array

Here is a Gist I posted showing a Swift utility function that enables you to create a Dictionary containing an optional entry for every element in an Array. It uses the┬áreduce function to create one Dictionary from every element in … Continue reading

Posted in Swift | Tagged , , | 2 Comments