Is this a bug?

andreas.marth@daimlerchrysler.com andreas.marth@daimlerchrysler.com
Mon, 12 Mar 2001 19:40:21 +0100


Hallo!

I just wonder why=20
 map (^2*3) [1..9]  returns
[1,64,729,4096,15625,46656,117649,262144,531441] .
 [i^2*3|i<-[1..9]]  return the expected
[3,12,27,48,75,108,147,192,243].
And so does  map (\a->a^2*3) [1..9].
So why is (^2*3) not equvalent to \a->a^2*3 ?

Thanks,
Andreas=