Sunday, May 13, 2012

Nested function

 function printReverse(str)  
      function reverseString(s)  
           return string.reverse(s)  
      end  
      print(reverseString(str))  
 end  
   
 printReverse("ANONYMOUS")  

No comments:

Post a Comment