Tagged: Array
There are 14 items tagged #Array.
And there a lots of other tags to explore.
There are 14 items tagged #Array.
And there a lots of other tags to explore.
Swift Array has an instance method, filter(_:), that removes unwanted elements from the resulting array.
Learn how to do that using the Swift Algorithms module and without it.
Learn how to turn ["John", "Alice", "Bob"] into "John, Alice, Bob".
Learn two ways to check if an array contains a given element.
Learn how to filter out nil values from a Swift array.
Swift has many ways to retrieve an index of an array, but it might not be obvious. Let's learn how to do it.
Learn how tuple can help you in sorting.
Learn how to sort an array of objects with multiple criteria.
Learn a proper way to sort an array of strings in each circumstance.
Learn a few ways to do it and things you should know when using them.
When working with an unstable, legacy, or third party API, you might get a malformed object in an array. Learn how to decode a JSON array with corrupted data in Codable safely.
Learn different ways to split a string into an array of substrings.
See all tags.