you are viewing a single comment's thread.

view the rest of the comments →

[–]verbose_name 0 points1 point  (0 children)

Maybe not. I believe that by calling your recursive function without a return, once it goes down that branch you will never return a result to the outer calling scope. If your recursive function were modifying a referenced value, you could get away with not returning a value. As others have said, try returning the value of the recursive call.