Why does the type of linkedliststack need to be comparable
Author: oliverdainCreated Jun 26, 2025Updated Jul 28, 2025
I don't see any operations on linkedliststack that would actually require comparisons but the type bound is:
// New nnstantiates a new empty stack
func New[T comparable]() *Stack[T] {
return &Stack[T]{list: singlylinkedlist.New[T]()}
}Source: emirpasic/gods