rtp补完

This commit is contained in:
dexter
2022-02-12 10:23:56 +08:00
parent 76f7e8ab8b
commit 717f2ae77d
20 changed files with 433 additions and 160 deletions

View File

@@ -30,3 +30,7 @@ func (s *Slice[T]) ResetAppend(first T) {
s.Reset()
s.Add(first)
}
func LastElement[T any](s []T) T {
return s[len(s)-1]
}