MCPcopy
hub / github.com/arnauddri/algorithms / NewNode

Function NewNode

data-structures/linked-list/linked_list.go:25–27  ·  view source on GitHub ↗
(value interface{})

Source from the content-addressed store, hash-verified

23}
24
25func NewNode(value interface{}) *Node {
26 return &Node{Value: value}
27}
28
29func (l *List) Len() int {
30 return l.Length

Callers 4

TestLinkedListFunction · 0.70
PrependMethod · 0.70
AppendMethod · 0.70
AddMethod · 0.70

Calls

no outgoing calls

Tested by 1

TestLinkedListFunction · 0.56