Array with a default value in Swift

let value = 5
let count = 3
let array = [Int](count: count, repeatedValue: value)
//array is [5, 5, 5]