Skip to content

Latest commit

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

DBL (Doubly Linked List)

dbl is a Doubly Linked List implementation in Go

Usage

package main
import"github.com/gompact/dbl"funcmain() {
// create empty listl:=dbl.NewList()
// append values to the listl.Append("first node")
l.Append("second node")
// remove first indexok:=l.Remove(0)
// Pop last elementl.Append("third node")
thirdNode:=l.Pop()
// Add element to the beginning of the listl.Prepend("zero node")
// remove all elements in the listl.RemoveAll()
// get length of the listlength:=l.Length()
}

About

Doubly Linked List implementation in Go

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages