MCPcopy Create free account
hub / github.com/TheAlgorithms/Go / Doubly

Struct Doubly

structure/linkedlist/doubly.go:18–20  ·  view source on GitHub ↗

Doubly structure with just the Head Node We call it `Doubly` to make it easier to understand when calling this in peoples own local code to understand and experiment with this easily. For example, we can use gotools `go get` command to get this repository cloned inside the $GOPATH/src/github.com/The

Source from the content-addressed store, hash-verified

16//
17// and call linkedlist.Doubly to create a new doubly linked list.
18type Doubly[T any] struct {
19 Head *Node[T]
20}
21
22// Init initializes double linked list
23func (ll *Doubly[T]) Init() *Doubly[T] {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected