[Variable] Match .count on arrays

This commit is contained in:
Kyle Fuller
2014-10-25 15:12:56 +01:00
parent 46350dbd49
commit 98771558ca

View File

@@ -38,6 +38,8 @@ public struct Variable : Equatable {
current = array.first current = array.first
} else if bit == "last" { } else if bit == "last" {
current = array.last current = array.last
} else if bit == "count" {
current = countElements(array)
} }
} else if let object = current as? NSObject { } else if let object = current as? NSObject {
current = object.valueForKey(bit) current = object.valueForKey(bit)