import Foundation extension String { init<I : SignedInteger>(decimalStyle int: I) { let formatter = NumberFormatter() formatter.numberStyle = .decimal self = formatter.string(from: Int(int) as NSNumber)! } } let ids = [89902,100238,123289] let a = ids.map(String.init).joined(separator: "|") // Ambiguous use of 'init'