link

package
v0.0.0-...-021ab65 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IListNode

type IListNode interface {
	Put(val any)
	Pop() any
	Close()
	// contains filtered or unexported methods
}

type ListNodeChannel

type ListNodeChannel struct {
	// contains filtered or unexported fields
}

func NewListNodeChannel

func NewListNodeChannel() *ListNodeChannel

func (*ListNodeChannel) Close

func (l *ListNodeChannel) Close()

func (*ListNodeChannel) List

func (l *ListNodeChannel) List() []any

func (*ListNodeChannel) Pop

func (l *ListNodeChannel) Pop() any

func (*ListNodeChannel) Put

func (l *ListNodeChannel) Put(val any)

type ListNodeMux

type ListNodeMux struct {
	// contains filtered or unexported fields
}

ListNodeMux 链表

func NewListNodeMux

func NewListNodeMux() *ListNodeMux

func (ListNodeMux) Close

func (l ListNodeMux) Close()

func (*ListNodeMux) List

func (l *ListNodeMux) List() []any

func (*ListNodeMux) Pop

func (l *ListNodeMux) Pop() any

func (*ListNodeMux) Put

func (l *ListNodeMux) Put(val any)

func (*ListNodeMux) Reverse

func (l *ListNodeMux) Reverse()

Reverse 反转链表的实现

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL