appendDynamicWithStatic adds a to t's dynamics, preserving the alternating static/dynamic layout. Note that the empty static that gets appended here will get replaced if AppendStatic gets called next.
(a any)
| 90 | // Note that the empty static that gets appended here |
| 91 | // will get replaced if AppendStatic gets called next. |
| 92 | func (t *Tree) appendDynamicWithStatic(a any) { |
| 93 | t.Dynamics = append(t.Dynamics, a) |
| 94 | t.Statics = append(t.Statics, "") |
| 95 | } |
| 96 | |
| 97 | // nDyn returns the number of dynamic elements of t. |
| 98 | func (t *Tree) nDyn() int { |