Category: Swift5.6
-
Using Swift’s map
In Day 39′s Moonshot tutorial app, Paul uses .map on an array without much comment about what’s going on. I assume this might be a common concept in modern languages, but it was new to me. First, here’s Paul’s code Mission here contains an array of crew which is a struct with two strings, one…
-
Ranges
I wondered aloud, in a previous post, about the differences in writing a range as versus And that’s been answered in in one of the Day 34 articles. It sounds like older versions of Swift might not have allowed the second version.
-
How to upgrade XCode and Swift
With the September release of XCode 14 and Swift 5.7 it was time for my first update – I looked in “About” for an update link but there wasn’t one – so if you’re as dense as me, the tip is to head to the Mac App Store and have a look at the Updates…