is possible to have a proc within a proc?



I am working on a proc which calls itself recursively. Is it possible
for a proc to have a proc within itself? I am trying to group the
code together.

If so, how would I do this?

Thank you.
.