Programming With Swift
  • Home
  • About
  • Github
Sign in Subscribe

Array

A collection of 2 posts
How to find duplicates in an Array with JavaScript
How to

How to find duplicates in an Array with JavaScript

In this tutorial I will show you how you can check if an Array contains duplicate elements, but also, we will look at how you can return the elements that are duplicates. Both techniques focussed around the Set data type. Let's start with the data that will use
23 Aug 2021 2 min read
How to get index and value from for loop with Swift
How to

How to get index and value from for loop with Swift

Sometimes I find that I need to get both the index and the value when I am looping through an array. In this tutorial I will show you how to get both. I have the following array of programming languages: let languages = ["Swift", "Kotlin", "JavaScript&
10 Sep 2020 1 min read
Page 1 of 1
Programming With Swift © 2025
Powered by Ghost