mirror of
https://github.com/duke-git/lancet.git
synced 2026-11-16 05:12:11 +08:00
1 parent
3d7600a9e4
commit
c1b7500bcb
3 files changed
+48
No files matched your search
@@ -248,6 +248,11 @@ func (l *List[T]) Size() int {
|
||||
return len(l.data)
|
||||
}
|
||||
|
||||
// Cap return cap of the inner data
|
||||
func (l *List[T]) Cap() int {
|
||||
return cap(l.data)
|
||||
}
|
||||
|
||||
// Swap the value of index i and j in list
|
||||
func (l *List[T]) Swap(i, j int) {
|
||||
size := len(l.data)
|
||||
|
||||
Reference in new issue
Block a user