Move away from deprecated curry syntax

This commit is contained in:
Kyle Fuller
2015-12-14 09:04:18 -05:00
parent 07835063ed
commit 03928721c4

View File

@@ -1,13 +1,15 @@
public func until(tags:[String])(parser:TokenParser, token:Token) -> Bool { public func until(tags: [String]) -> ((TokenParser, Token) -> Bool) {
if let name = token.components().first { return { parser, token in
for tag in tags { if let name = token.components().first {
if name == tag { for tag in tags {
return true if name == tag {
return true
}
} }
} }
}
return false return false
}
} }
public typealias Filter = Any? throws -> Any? public typealias Filter = Any? throws -> Any?