Added method to get length of unique array
This commit is contained in:
@@ -36,3 +36,7 @@ func (s uniq_arr[T]) values() []T {
|
||||
}
|
||||
return toRet
|
||||
}
|
||||
|
||||
func (s uniq_arr[T]) len() int {
|
||||
return len(s.backingMap)
|
||||
}
|
||||
|
Reference in New Issue
Block a user