module AufgabeFFP6 where import Data.Array (./.) :: Int -> Int -> Int (./.) = div myfoldl :: [(a -> b -> a)] -> a -> [b] -> a myfoldl _ z [] = z myfoldl (f:fs) z (x:xs) = myfoldl fs (f z x) xs myfoldl' :: [(a -> a -> a)] -> [a] -> a myfoldl' f (x:xs) = myfoldl f x xs eval :: Array Int Int -> Array Int (Int -> Int -> Int) -> Int eval a b = myfoldl' (elems b) (elems a) -------------------------------------------------------------------------------- --yield :: Array Int Int -> Int -> [Array Int (Int -> Int -> Int)]