Avatar
Avatar
Yuta Saito
@swift-5.10.1 @swift-6.0.3 import Foundation for _ in 0...10 { let locales = Locale.availableIdentifiers.map { Locale(identifier: $0) } .filter { $0.currencyCode == "JPY" } print(locales) } (edited)
[<NSLocale: 0x000058c9f2cc3980>] [<NSLocale: 0x000058c9f2c75300>] [<NSLocale: 0x000058c9f2da6000>] [<NSLocale: 0x000058c9f2da9dd0>] [<NSLocale: 0x000058c9f2ca2380>] [<NSLocale: 0x000058c9f2cb6b60>] [<NSLocale: 0x000058c9f2ca2240>] [<NSLocale: 0x000058c9f2cb6a20>] [<NSLocale: 0x000058c9f2ca74f0>] [<NSLocale: 0x000058c9f2cb6e40>] [<NSLocale: 0x000058c9f2ca7e60>] (edited)