peek returns the first item in the list without removing it from the list.
()
| 69 | // peek returns the first item in the list without removing it from the |
| 70 | // list. |
| 71 | func (il *itemList) peek() any { |
| 72 | return il.head.it |
| 73 | } |
| 74 | |
| 75 | func (il *itemList) dequeue() any { |
| 76 | if il.head == nil { |
no outgoing calls
no test coverage detected