Hi - newbie
Is it possible to use a condition on a list using map eg
map (*4) [1,2,3,4,5,4,3,2,1,20]
[4,8,12,16,20,16,12,8,4,80]
..... what I would like to achieve is that if the number in the list is <4 then map (*4) [1,2,3,4,5,4,3,2,1,20] else if the number in the list is between 4 & 5 then map (/4) [1,2,3,4,5,4,3,2,1,20]
else map (+4) [1,2,3,4,5,4,3,2,1,20]
so, my result would be..
>[4,8,12,1,1.25 ,1,12,8,4,24]
or maybe map is not the answer?
Regards