Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

pop last element array swift


// Initialize the Array
var a = [1,2,3]

// Remove last item
let lastItem = a.removeLast()

print(lastItem)
print(a)
 
PREVIOUS NEXT
Tagged: #pop #element #array #swift
ADD COMMENT
Topic
Name
9+2 =