<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Stack-Overflow on dev.endevour</title><link>https://devendevour.iankulin.com/tags/stack-overflow/</link><description>Recent content in Stack-Overflow on dev.endevour</description><generator>Hugo</generator><language>en-AU</language><lastBuildDate>Sat, 27 Aug 2022 00:00:00 +0000</lastBuildDate><atom:link href="https://devendevour.iankulin.com/tags/stack-overflow/index.xml" rel="self" type="application/rss+xml"/><item><title>Int.times()</title><link>https://devendevour.iankulin.com/int-times/</link><pubDate>Sat, 27 Aug 2022 00:00:00 +0000</pubDate><guid>https://devendevour.iankulin.com/int-times/</guid><description>&lt;p&gt;&lt;img src="https://devendevour.iankulin.com/images/shockwave_coaster_sfot.jpg" alt="" class="img-responsive"&gt; &lt;/p&gt;
&lt;p&gt;When writing &lt;a href="https://devendevour.iankulin.com/the-_-underscore/"&gt;yesterday&amp;rsquo;s post&lt;/a&gt; about iterating through a range or collection and using the underscore to throw away the item, I had in the back of my mind that there should be a more straightforward way of doing something a number of times.&lt;/p&gt;
&lt;p&gt;Just to re-iterate (lol), here&amp;rsquo;s the issue. If we want to print &amp;ldquo;Here&amp;rsquo;s the thing&amp;rdquo; three times, in Swift the simplest we can do is:&lt;/p&gt;
&lt;p&gt;for _ in 1&amp;hellip;3 {
print(&amp;ldquo;Here&amp;rsquo;s the thing&amp;rdquo;)
}&lt;/p&gt;</description></item></channel></rss>