It probably has to do with the method square having 2 parameter lists.
Writing it like this works:
x.map(square(_))
On Fri, Oct 29, 2010 at 6:39 PM, Aaron Novstrup
<
[hidden email]> wrote:
> Ok, I guess that was premature. My solution doesn't actually work...
>
> On 10/29/2010 05:29 PM, Aaron Novstrup wrote:
>> For those interested, the stackoverflow question is here:
>>
http://stackoverflow.com/questions/4056452/type-polymorphism-in-scala>>
>> I responded to James' question there to avoid cross-posting.
>>
>> On 10/29/2010 05:01 PM, James Bullard wrote:
>>> Hi, I am very new to Scala programming and I am attempting to understand
>>> how to write a simple square function. [snip]
>
>
--
Derek