Infrastructure for simple internal hyperlink handling

This commit is contained in:
Kovid Goyal 2024-05-04 13:44:09 +05:30
parent 9e688720a6
commit 51472e1e88
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
7 changed files with 217 additions and 20 deletions

View file

@ -41,6 +41,10 @@ func (self *Set[T]) Has(val T) bool {
return ok
}
func (self *Set[T]) Clear() {
clear(self.items)
}
func (self *Set[T]) Len() int {
return len(self.items)
}