Value and Type parameter packs in Swift explained with examples

https://www.avanderlee.com/swift/value-and-type-parameter-packs/?

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.

10 points · 0 comments · view on lemmy.world

0 Comments

No comments yet.