# Array.removeAtIndex now remove(at:)

**URL:** https://talk.remobjects.com/t/array-removeatindex-now-remove-at/11501
**Category:** Silver
**Created:** [December 3, 2016, 11:00am UTC](https://talk.remobjects.com/t/array-removeatindex-now-remove-at/11501 "2016-12-03T11:00:37Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jnermut](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/j/a4c791/32.png) [@jnermut](https://talk.remobjects.com/u/jnermut)
#### Post date: [December 3, 2016, 11:00am UTC](https://talk.remobjects.com/t/array-removeatindex-now-remove-at/11501/1 "2016-12-03T11:00:37Z")

</div>

This valid swift 3 code gives an error in Fire 9.0.2071

```
var arr = [1,2,3]
arr.remove(at: 2)
```

An XCode playground tells the story:

 ![](https://talk.remobjects.com/uploads/default/original/2X/d/d67315d5bd2511abd610a6469eadb87d34cc4471.png)

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [December 3, 2016, 5:22pm UTC](https://talk.remobjects.com/t/array-removeatindex-now-remove-at/11501/2 "2016-12-03T17:22:47Z")

</div>

Fixed in GitHub , thanx.

---

<div class="post-metadata">

### Author: ![jnermut](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/j/a4c791/32.png) [@jnermut](https://talk.remobjects.com/u/jnermut)
#### Post date: [December 4, 2016, 11:54pm UTC](https://talk.remobjects.com/t/array-removeatindex-now-remove-at/11501/3 "2016-12-04T23:54:11Z")

</div>

Thanks for the fix. Is there any way to get visibility of whether it will be in the next 9.0 build or 9.1?

Found another similar one in Dictionary

public mutating func removeValueForKey(\_ key: Key) -\> Value?

is now

public mutating func removeValue(forKey key: Key) -\> Value?

Also noticed in passing this one doesnt seem to there in SwiftBaseLibrary at all:

```
/// Removes and returns the key-value pair at the specified index.
///
/// Calling this method invalidates any existing indices for use with this
/// dictionary.
///
/// - Parameter index: The position of the key-value pair to remove. `index`
/// must be a valid index of the dictionary, and must not equal the
/// dictionary's end index.
/// - Returns: The key-value pair that correspond to `index`.
///
/// - Complexity: O(*n*), where *n* is the number of key-value pairs in the
/// dictionary.
public mutating func remove(at index: DictionaryIndex<Key, Value>) -> (key: Key, value: Value)
```

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [December 5, 2016, 1:45am UTC](https://talk.remobjects.com/t/array-removeatindex-now-remove-at/11501/4 "2016-12-05T01:45:39Z")

</div>

it’ll be in the next beta and the next release; you can also grab the code off github now, if you want…
