If a generic function has a default value for a type parameter, Swift can infer ...

@twostraws@mastodon.social

If a generic function has a default value for a type parameter, Swift can infer the type from that default rather than requiring you to spell it out every time. Subtle, but it removes a whole category of unnecessary verbosity. hackingwithswift.com/swift/5.7