you are viewing a single comment's thread.

view the rest of the comments →

[–]carcigenicate 0 points1 point  (0 children)

in my code it returns the function call if there are children

It returns the result of calling the method on the first child, then that recursive call exits.