applyEach :: [(a -> b)] -> a -> [b] applyEach [] _ = [] applyEach (f:fs) x = f x : applyEach fs x
admin
applyEach fs x = map (\f -> f x) fs or using ($) applyEach fs x = map ($ x) fs
Your email address will not be published. Required fields are marked *
Comment *
Name *
Email *
Website
Δ
One response to “Exercise 9.4”
applyEach fs x = map (\f -> f x) fs
or using ($)
applyEach fs x = map ($ x) fs