Len returns the number of elements within the list.
()
| 19 | |
| 20 | // Len returns the number of elements within the list. |
| 21 | func (l *List[Key, Value]) Len() int { |
| 22 | return int(l.count.Load()) |
| 23 | } |
| 24 | |
| 25 | // First returns the first item of the list. |
| 26 | func (l *List[Key, Value]) First() *ListElement[Key, Value] { |
no outgoing calls