---
title: "Ahmed Elgendy (@ahmedelgendy) | Hashnode"
description: "iOS Software Engineer. Read the latest articles by Ahmed Elgendy on Hashnode."
url: "https://hashnode.com/@ahmedelgendy"
---

@ahmedelgendy

# Ahmed Elgendy

@ahmedelgendy · Istanbul · Joined April 2016

iOS Software Engineer

### [How can we insert an item into an array efficiently?](https://ahmedelgendy.com/how-can-we-insert-an-item-into-an-array-efficiently?utm_source=hashnode&utm_medium=feed)

Sometimes we have to insert items to the first indices of the array The easiest solution can be: var array = \[1,2,3,4,5,6,7,8,9\] array.insert(0, at: 0) print(array) this solution is going to work, but is it efficient? Looking into the Apple Doc...

1 min read · [ahmedelgendy.com](https://ahmedelgendy.com/how-can-we-insert-an-item-into-an-array-efficiently?utm_source=hashnode&utm_medium=feed)

[Sep 14, 2022](https://hashnode.com/posts/how-can-we-insert-an-item-into-an-array-efficiently/632226915483096daa0ac3ba)

### [Swift 5.7: Shorthand for optional unwrapping](https://ahmedelgendy.com/swift-shorthands-for-optional-unwrapping?utm_source=hashnode&utm_medium=feed)

Swift 5.7 comes with a new feature that saves our time To unwrap an optional value we used to do if let username = username { print(usernname) } After Swift 5.7 new shorthand, we can easily do if let username { print(usernname) } Without repeatin...

1 min read · [ahmedelgendy.com](https://ahmedelgendy.com/swift-shorthands-for-optional-unwrapping?utm_source=hashnode&utm_medium=feed)

[Sep 9, 2022](https://hashnode.com/posts/swift-shorthands-for-optional-unwrapping/631aecea5abe8613b3d3400c)
