Are there any example of Mutual recursion?

前端 未结 8 791
迷失自我
迷失自我 2021-02-04 09:48

Are there any examples for a recursive function that calls an other function which calls the first one too ?

Example :

function1()
{    
    //do something         


        
8条回答
  •  醉话见心
    2021-02-04 10:05

    In a language with proper tail calls, Mutual Tail Recursion is a very natural way of implementing automata.

提交回复
热议问题