Closed
Description
The Objective-C Foundation has a ListFormatStyle
for formatting collections as described at https://developer.apple.com/documentation/foundation/listformatstyle. This does not exist in Swift Foundation.
Expected Result:
Using someArrayOfStrings.formatted(.list(type: .and))
works on both macOS and Linux
Actual Result:
.../Something.swift:151:46: error: value of type '[String]' has no member 'formatted'
let formatted = someArrayOfStrings.formatted(.list(type: .and))
Steps to reproduce
let someArrayOfStrings = ["Alice", "Bob", "Charlie"]
let formatted = someArrayOfStrings.formatted(.list(type: .and))
Metadata
Metadata
Assignees
Labels
No labels