Skip to content

Why does the type of linkedliststack need to be comparable #284

@oliverdain

Description

@oliverdain

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]()}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions