NewSingly returns a new instance of a linked list
()
| 17 | |
| 18 | // NewSingly returns a new instance of a linked list |
| 19 | func NewSingly[T any]() *Singly[T] { |
| 20 | return &Singly[T]{} |
| 21 | } |
| 22 | |
| 23 | // AddAtBeg adds a new snode with given value at the beginning of the list. |
| 24 | func (ll *Singly[T]) AddAtBeg(val T) { |
nothing calls this directly
no outgoing calls
no test coverage detected