[Haskell-cafe] Functions are first class values in C

Cristian Baboi cristian.baboi at gmail.com
Sat Dec 22 09:57:21 EST 2007


On Sat, 22 Dec 2007 16:55:08 +0200, Miguel Mitrofanov  
<miguelimo38 at yandex.ru> wrote:

>>>> In Haskell I cannot pass a function to a function, only its expansion.
>>
>>> What do you mean by "expansion"? Can you clarify this?
>>
>> f1=\x->x+1
>> f2=\x->2*x
>> g=\x->x.f1
>> h=\x->x.(\x->x+1)
>>
>> h is g
>
> Not clear. Try starting with "function's expansion is..."


function's expansion is ... just like macro expansion.


More information about the Haskell-Cafe mailing list