11 Replies Latest reply on Feb 21, 2016 7:37 AM by beverly

    Tail recursion equivalent to this...?

    flusheddata

      Hi everyone,

      In order for me to understand tail recursion with a sample as simple as possible would anybody put a tail recursion version of the following funcion?

       

      Stacked version of Reverse ( Text ):

       

      Case (

        Length ( Text ) > 1 ;

        Reverse ( Right ( Text ; Length ( Text ) - 1 )  ) & Left ( Text ; 1 ) ;

        Text

      )

       

      Thank you very much in advance.

       

      Kind regards,

      Miguel