[nem-en] about partial application

Ivan Lakhturov lakhturov at gmail.com
Sun Dec 3 21:38:31 CET 2006


Hello Michal,

Sunday, December 3, 2006, 9:33:18 PM, you wrote:

> On 12/3/06, Ivan Lakhturov <lakhturov at gmail.com> wrote:
>> Hello devel-en,
>>
>>   this works:
>>       def references = references.Filter(_.Contains("Nemerle"));
>>   however, don't work neither this:
>>       def references = references.Filter(!_.Contains("Nemerle"));
>>   nor this:
>>       def references = references.Filter(!(_.Contains("Nemerle")));

> Because the partial application only works one level down. Which means
> !_.foo() is really !(x => x.foo()).

Is there a way to make better this spot?

regards, phantom




More information about the devel-en mailing list