What does this program print?

from Generics
Swift 6.3.3 beginner 2 min

What does this program print?

swift
func transformed<Input, Output>(
    _ values: [Input],
    using transform: (Input) -> Output
) -> [Output] {
    values.map(transform)
}

let counts = transformed(["build", "test"]) { $0.count }
print(counts)
Open in playground
Report an error