What does this program print?

from Protocol constraints and existentials
Swift 6.3.3 beginner 2 min

What does this program print?

swift
func selected<Value>(_ first: Value, _ second: Value, useFirst: Bool) -> Value {
    useFirst ? first : second
}

let number = selected(3, 8, useFirst: false)
let word = selected("left", "right", useFirst: true)
print(number)
print(word)
Open in playground
Report an error