It looks like you are not using the latest version of Swift (beta 5), ββin the first versions there was no [Int] syntax for arrays.
you can upgrade Xcode or rewrite this code:
func returnPossibleTips() -> Dictionary<Int, Double> { let possibleTipsInferred = [0.15, 0.18, 0.20] let possibleTipsExplicit:Array<Double> = [0.15, 0.18, 0.20] var retval = Dictionary<Int, Double>() for possibleTip in possibleTipsInferred { let intPct = Int(possibleTip * 100) retval[intPct] = calcTipWithTipPct(possibleTip) } return retval }
Alexey Globchastyy
source share