show all value as an interface array
()
| 62 | |
| 63 | // show all value as an interface array |
| 64 | func (ll *Stack) Show() (in []any) { |
| 65 | current := ll.top |
| 66 | |
| 67 | for current != nil { |
| 68 | in = append(in, current.Val) |
| 69 | current = current.Next |
| 70 | } |
| 71 | return |
| 72 | } |
no outgoing calls