SOE ex.9.10
f xs = map (\x -> (x+1)/2) xs
g xs = map ((/2).(+1)) xs
----- test -----
main = do
putStrLn $ show $ f [1..10]
putStrLn $ show $ g [1..10]
putStrLn $ show $ f [1..10] == g [1..10]
f xs = map (\x -> (x+1)/2) xs
g xs = map ((/2).(+1)) xs
----- test -----
main = do
putStrLn $ show $ f [1..10]
putStrLn $ show $ g [1..10]
putStrLn $ show $ f [1..10] == g [1..10]