 
            
            
            
            
                7 Jun
                
                    2015
                
            
            
                7 Jun
                
                '15
                
            
            
            
        
    
                4:09 p.m.
            
        Hi, Can someone please highlight how '$' is making the difference in the execution of this function. With $ in place the function runs fine but without $ for large input values the function overflows the stack. -------- s mp 1 = 4 s mp n = ((s mp $ n-1)^2-2) `mod` mp -------- I cannot understand the difference between (s mp $ n-1) and (s mp n-1) Thanks, Shishir Srivastava +44 (0) 750 127 5019