ds

package module
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 1 Imported by: 0

README

ds

A golang library containing basic datastructures

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LinkedList

type LinkedList[T any] struct {
	Head *ListNode[T]
	Tail *ListNode[T]
	Size uint
}

func (*LinkedList[T]) Add

func (ll *LinkedList[T]) Add(data T)

func (*LinkedList[T]) Println

func (ll *LinkedList[T]) Println()

func (*LinkedList[T]) Remove

func (ll *LinkedList[T]) Remove(node *ListNode[T]) error

type ListNode

type ListNode[T any] struct {
	Data T
	Next *ListNode[T]
}

Jump to

Keyboard shortcuts

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