79, 83, 68, 67, 32, 74, 97, 112, 97, 110, 33] var result = "" while !asciiValues.isEmpty { let first = asciiValues.first! for value in asciiRange { if value == first { result.append(Character(UnicodeScalar(value)!)) asciiValues.removeFirst() } } } print(result) 05 04 03 02 01 00 00: ͳͥෳࡶʹײ͡Δͷ͔ʁ > ΫΠζ