swift - Remove list element at index? -
Swift is a serious lack of available methods for lists. It's really disappointing, a Python coming from the background. For example, I want to remove the first element, something will work in Python:
mylist = mylist [1:] how can i Remove an element from the list (preferably from the index, but whatever method I can do the easiest)?
removeAtIndex var arr = [1, 2, 3] use arr.removeAtIndex (1)
Comments
Post a Comment