Skip Navigation

Value and Type parameter packs in Swift explained with examples

www.avanderlee.com Value and Type parameter packs in Swift explained with examples

Value and type parameter packs allow you to write generic functions that accept an arbitrary number of arguments with distinct types

Value and Type parameter packs in Swift explained with examples

cross-posted from: https://programming.dev/post/3558087

Type parameter packs and value parameter packs allow you to write a generic function that accepts an arbitrary number of arguments with distinct types. As a result of SE-393, SE-398, and SE-399, you can use this new feature from Swift 5.9.

0
0 comments