NewList returns an initialized list.
()
| 408 | |
| 409 | // NewList returns an initialized list. |
| 410 | func NewList[K comparable, V any]() *LruList[K, V] { return new(LruList[K, V]).Init() } |
| 411 | |
| 412 | // Length returns the number of elements of list l. |
| 413 | // The complexity is O(1). |