A little Swift treasure: list formatting.
[“Tom", "Harry”].formatted()
"Tom and Harry”
[“Charles", "Delia", "Lydia”].formatted()
"Charles, Delia, and Lydia”
It is, of course, locale sensitive, and supports a ListType of and
and or
.
[“Carreras", “Pavarotti", “Domingo”]
.formatted(.list(type: .or).locale(.init(identifier: "it_it")))
"Carreras, Pavarotti o Domingo”
=> More informations about this toot | View the thread | More toots from mattcomi@hachyderm.io
text/gemini
This content has been proxied by September (ba2dc).