var elements = ["String", "String2", "String3"];
let element = elements.remove(at: 1) // Removes and returns the element at index 1
let first = elements.removeFirst() // Removes and returns the first element
let last = elements.removeLast() // Removes and returns the last element
elements.removeAll() // Removes all elements
array.remove(at: 4) //Removes the element at 4th index)
let orignalArray = [1,2,3,4]
let newArray = orignalArray.filter { $0 != 2 } // use remove element insted of 2
print(newArray) // [1,3,4]
var languages = ["Swift","Java","Python"]
print("Initial Array: (languages)")
// remove element at index 1
let removedValue = languages.remove(at: 1)
print("Updated Array: (languages)")
print("Removed value: (removedValue)")