Use modern Swift 2.0

This commit is contained in:
Kyle Fuller
2015-09-25 10:40:58 -07:00
parent a0bde992c2
commit 878c5cfde8
3 changed files with 14 additions and 17 deletions

View File

@@ -25,7 +25,7 @@ public struct Variable : Equatable {
for bit in lookup() {
if let context = current as? Context {
current = context[bit]
} else if let dictionary = current as? Dictionary<String, AnyObject> {
} else if let dictionary = current as? [String:AnyObject] {
current = dictionary[bit]
} else if let array = current as? [AnyObject] {
if let index = Int(bit) {