1
1
mirror of https://github.com/github/semantic.git synced 2024-11-29 02:44:36 +03:00

Cofree has categories when B: Categorizable.

This commit is contained in:
Rob Rix 2015-10-14 15:49:23 -04:00
parent b60abdf5b0
commit 124d45a549

View File

@ -115,4 +115,13 @@ extension Cofree where A: CustomJSONConvertible, B: CustomJSONConvertible {
}
// MARK: - Categorizable
extension Cofree where B: Categorizable {
var categories: Set<B.Category> {
return extract.categories
}
}
import Prelude