Какой грязный хак :)
Feb. 13th, 2008 12:32 amsuminit :: [Int] -> Int -> Int -> (Int,[Int]) suminit xs len acc | len `seq` acc `seq` False = undefined -- :))) | len == 0 = (acc,xs) | otherwise = case xs of [] -> (acc,[]) x:xs -> suminit xs (len-1) (acc+x)Найдено тут.