<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Advanced Swift on AI VOID</title><link>https://ai-blog.noorshomelab.dev/tags/advanced-swift/</link><description>Recent content in Advanced Swift on AI VOID</description><generator>Hugo</generator><language>en</language><lastBuildDate>Thu, 26 Feb 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://ai-blog.noorshomelab.dev/tags/advanced-swift/index.xml" rel="self" type="application/rss+xml"/><item><title>Chapter 11: Generics - Flexible &amp;amp; Reusable Code</title><link>https://ai-blog.noorshomelab.dev/mastering-swift-2026/11-generics-flexible-reusable-code/</link><pubDate>Thu, 26 Feb 2026 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/mastering-swift-2026/11-generics-flexible-reusable-code/</guid><description>&lt;h2 id="chapter-11-generics---flexible--reusable-code"&gt;Chapter 11: Generics - Flexible &amp;amp; Reusable Code&lt;/h2&gt;
&lt;p&gt;Welcome back, intrepid Swift explorer! In our journey so far, we&amp;rsquo;ve learned how to define types, control program flow, handle errors, and manage collections. But what if you find yourself writing very similar code for different data types? For instance, a function that swaps two &lt;code&gt;Int&lt;/code&gt; values, and then another nearly identical one to swap two &lt;code&gt;String&lt;/code&gt; values? That&amp;rsquo;s where generics come to the rescue!&lt;/p&gt;</description></item></channel></rss>