HasFunction reports whether the stack has the given function anywhere in it.
(name string)
| 70 | // HasFunction reports whether the stack has the given function |
| 71 | // anywhere in it. |
| 72 | func (s Stack) HasFunction(name string) bool { |
| 73 | _, ok := s.allFunctions[name] |
| 74 | return ok |
| 75 | } |
| 76 | |
| 77 | func (s Stack) String() string { |
| 78 | return fmt.Sprintf( |
no outgoing calls