DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SWIFT
How to remove the last item from an array in swift
var x = [2, 4, 6, 7] x.popLast() print(x.count) // output : 3
PREVIOUS
NEXT
Tagged:
#How
#remove
#item
#array
#swift
ADD COMMENT
Topic
COMMENT
Name
1+3 =
Submit