Add example of type inference in swift functions

I think this is another non-obvious example of where type inference is
awesome. @thoughtbot/ios