Entry tags:
Какой грязный хак :)
suminit :: [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)Найдено тут.
no subject
no subject
no subject
Наверное, это тоже самое, но с сахаром. :)
no subject