Will the following do what you wish?

add :: Int -> Int -> Int
add x y = x + y

addends = [3,5,7,3,5,8]::[Int]

add3s :: [Int] -> [Int -> Int]
add3s addends = map add (filter (3==) addends)

k3 :: [Int]
k3 = map (\ f -> f 10 ) (add3s addends)
--
Regards,
Casey
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to