(s S)
| 784 | } |
| 785 | |
| 786 | func clearSlice[S ~[]E, E any](s S) { |
| 787 | var zero E |
| 788 | for i := range s { |
| 789 | s[i] = zero // clear mem, optimized by the compiler, in Go 1.21 the "clear" builtin can be used |
| 790 | } |
| 791 | } |
| 792 | |
| 793 | // estimateFnArgsCount inspects a *Program and estimates how many function |
| 794 | // arguments will be required to run it. |
no outgoing calls
no test coverage detected
searching dependent graphs…