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:
parent
b60abdf5b0
commit
124d45a549
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user