How to search and replace values in a Swift array?
<p>I have an array:</p>

<p>var array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]</p>

<p>(not necessarily in that order or numbers, could be: [4,9,15,12])</p>

<p>I want to replace all instances of 10 with A, 11 with B, 12 with C, 13 with D, 14 with E, 15 with F and then
<code>outputLabel.text = array.joinWithSeperator("")</code></p>

<p>I already know that to replace words in a string you can:</p>

<pre><code>var myString = "Hello this is a test."
var myDictionary = ["Hello":"Yo"]

for (originalWord, newWord) in myDictionary {
    let newString = aString.stringByReplacingOccurrencesOfDictionary(myString, withString:newWord, options: NSStringCompareOptions.LiteralSearch, range: nil)
}
</code></pre>

<p>So would searching and replacing values in an array be something similar?</p>