1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00

Document the operator.

This commit is contained in:
Rob Rix 2015-10-29 15:09:57 -04:00
parent 7dc2c9e1a2
commit c48a141418

View File

@ -23,6 +23,7 @@ let languagesByFileExtension: [String:TSLanguage] = [
"c": ts_language_c(),
]
/// Allow predicates to occur in pattern matching.
func ~= <A> (left: A -> Bool, right: A) -> Bool {
return left(right)
}