Is it possible to write recursive functions in M2Doc?
I would like to structure part of my output document based on the functional breakdown of my system.
e.g.
Top Level Function
- Child Function 1
- Child of Child Function 1
- Child Function 2
- Child of Child Function 2
- Child of Child Function 2
The best way I think of to achieve this would be a recursive function. But I’m not sure if this is possible or how I might do it?
The alternative would be to hardcode a few levels of recursion in the template using for loops and if statements. But this would set a hard limit on the number of levels the functions could be decomposed into, which is why I was trying to avoid it.