MCPcopy Create free account
hub / github.com/GuyARoss/orbit / Arr

Method Arr

pkg/allocated_stack/allocated_stack.go:25–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23}
24
25func (s *Stack) Arr() []string {
26 final := make([]string, 0)
27
28 e := s.l.Front()
29 for i := 0; i < s.l.Len(); i++ {
30 final = append(final, e.Value.(string))
31
32 e = e.Next()
33 }
34
35 return final
36}
37
38func (s *Stack) Contains(v string) bool {
39 e := s.l.Front()

Callers 1

TestStackFunction · 0.80

Calls 1

LenMethod · 0.45

Tested by 1

TestStackFunction · 0.64