Christian Tietze

  • Blog Posts
  • Writing
  • Apps
  • Work With Me
  • Contact

Variadic Types in Swift and How to Count Them

May 7th, 2025

Teaser image

Rick van Voorden in yesterday’s Open Office hour told me about the fact that variadic types in Swift can, in fact, have an empty list of associated types. A quick refresher of variadic types in Swift using parameter packs:

Continue reading …

  • ∞ Permalink
  • • Comments
  • • Tags:
    • godbolt
    • swift
    • variadic-types
    • generics

Contact • Newsletter • Blog Feed • /feeds • /now • /uses • @ctietze@mastodon.social • Privacy & Legal Information

Except where otherwise noted, content on this site is licensed CC BY-SA 4.0.

As an Amazon Associate I earn from qualifying purchases. This e.g. applies to links to Amazon.com.