Skip to content

ahmetbostanciklioglu/Array

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

📚 Swift Basics: Array

A concise, runnable playground exploring Swift array properties and methods.

Platform Swift Playground Stars Last Commit

📖 Overview

Arrays are ordered collections that store multiple values of the same type in Swift. This playground is a short, hands-on learning example that demonstrates how to create arrays, inspect them, and transform them using Swift's built-in properties and methods. Every line is runnable inside an Xcode playground so you can see the results immediately.

✨ What it covers

  • Creating arrays with literals and an empty typed array ([Int]()).
  • Reading the element count with .count.
  • Adding elements with .append(_:) and removing them with .remove(at:).
  • Locating elements with .firstIndex(of:) and checking membership with .contains(_:).
  • Sorting with .sorted() and populating an array inside a for loop over a range.

🚀 Getting Started

git clone https://github.com/ahmetbostanciklioglu/Array.git
cd Array
unzip Array.playground.zip
open Array.playground

Open Array.playground in Xcode and run each line to view the results in the playground sidebar.

📋 Requirements

  • Xcode 12 or later
  • Swift 5+
  • iOS playground target

🧑‍💻 Author

Ahmet Bostancıklıoğlu@ahmetbostanciklioglu · ahmetbostancikli@gmail.com

⭐ If this helped you, consider giving the repo a star!

About

A concise Swift playground exploring array properties and methods — append, remove, sorted, contains, firstIndex.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors