Iterating Over a Generic Sequence in Swift

Here's a goofy bit of generic programming I do all the time in Swift—ironically, it's one thing C++ makes easier than Swift! The use case is simple: I want a function to be able to accept a container (really a Swift Sequence) of any type, as long as its values are of the right type. … Continue reading Iterating Over a Generic Sequence in Swift