|| SECTION 2 || : 2.2.15.2 All about Array in Swift.

Опубликовано: 25 Апрель 2026
на канале: iOSCoderAbhimanyuDaspan
317
12

1.How to Create an Array ? (Covered in || SECTION 2 || : 2.2.15.1 How to Create an Array in Swift. )

2.How to Inspect an Array ?

isEmpty ?
count ?
capacity ?

3.How to Access Element in Array ?
Access by index ?
Access by first ?
Access by last ?
Access by Range ?

4.How to Add Elements in Array ?

Add by append?
Add by insert ?
Replace Subrange ?
Reserve Capacity ?
5.How to Combine an array ?

Combine By Append a Sequence ?
Combine By + ?
Combine by += ?
6.How to Remove elements from an Array ?
Remove by Index ?
Remove by first ?
Remove by last ?
Remove first by Index ?
Remove last by Index ?
Remove Subrange ?
Remove All ?
Pop Last ?

7.How to find elements Array?
Find by “contains”?
Finding by “allSatisfy” ?
Find Index for an Element ?
Find Last Index ?
Find First Index ?
Find Last Element ?
Find First Element ?
Find Min from Array ?
Find Max from Array ?
Find min(by:) ?
Find max(by:) ?

8.How to Select/ Exclude / Transform an Array ?

Select Prefix Array Slice by Index ?
Select Prefix Array Slice by “through” ?
Select Prefix Array Slice by “upto” ?
Select Suffix Array Slice by Index ?
Select Suffix Array Slice by “from” ?

Exclude Array by dropFirst?
-Exclude Array by dropLast ?
Exclude Array by drop(while:)?

Transform array by “map”?
Transform array by “compactMap”?
Transform array by “flatMap”?
Transform array by “reduce”?
Lazy with Array ?

9.How to Iterate & filter an Array ?

Iterate Array by forEach ?
Iterate Array by enumerated ?
Iterate Array by makeIterator ?
underestimatedCount?

filter An Array?



10.How to Sort and split an Array ?

sort ?
sorted ?
sorted(by:)?

reverse()?
reversed()?

shuffle()?
shuffled()?

partition(by:)?

swapAt(int,int)?

split(separator:) ?
split(maxSplits:,OmittingEmptySubsequences:whereSeperator:) ?


joined(separator:)?

If you are comfortable with these above questions then congratulations !! :)

You crossed "Section 2 's point number 2.2.15.1” / "Section 14" .


My Target :- To complete "Jr. iOS Application Engineer Course" with 14 Sections.


Stay Connected , like share , subscribe for future update!!

Go Slow, Speed will come automatically!!

Mail Me:
[email protected]

Twitter
  / daspanabhimanyu  

Facebook
  / abhimanyu.daspan.7  

Instagram
  / ioscoderabhimanyudaspan  

Youtube
   / @ioscoderabhimanyudaspan8269  

Github:-
https://github.com/AbhimanyuForiOS

LinkedIn
  / abhimanyu-singh-rathore-daspan-🇮🇳-77677098  

#iOS​
#swiftprogramminglanguage​
#Array