mirror of
https://github.com/Monibuca/engine.git
synced 2025-10-27 18:21:01 +08:00
rtp补完
This commit is contained in:
@@ -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]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user