[Variable] Match .count on arrays
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user