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

Method Display

structure/linkedlist/singlylinkedlist.go:175–181  ·  view source on GitHub ↗

Display prints out the elements of the list.

()

Source from the content-addressed store, hash-verified

173
174// Display prints out the elements of the list.
175func (ll *Singly[T]) Display() {
176 for cur := ll.Head; cur != nil; cur = cur.Next {
177 fmt.Print(cur.Val, " ")
178 }
179
180 fmt.Print("\n")
181}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected