11 Jun
                
                    2007
                
            
            
                11 Jun
                
                '07
                
            
            
            
        
    
                2:12 p.m.
            
        Jon Fairbairn 
The idea in Haskell is not to think of stepping through the array. Look at accumArray and ixmap.
Thanks for your answer. But I can't really see how the calc-function can be written more efficiently with accumArray or ixmap, perhaps you can write it as an example? -- Regards, H.