How do you solve this Haskell problem using higher order functions?
Posted
by Linda Cohen
on Stack Overflow
See other posts from Stack Overflow
or by Linda Cohen
Published on 2010-05-06T00:55:16Z
Indexed on
2010/05/06
0:58 UTC
Read the original article
Hit count: 284
Using higher order functions (map, fold or filter) and if necessary lambda expressions. Write a definition for f1 and f2 so the following evaluation is valid:
f1 (f2 (*) [1,2,3,4]) 5
output: [5,10,15,20]
Any help would be appreciated, thanks.
© Stack Overflow or respective owner