[Haskell-cafe] Re: Why is $ right associative instead of leftassociative?

Ben Rudiak-Gould Benjamin.Rudiak-Gould at cl.cam.ac.uk
Sun Feb 5 13:58:15 EST 2006


Tomasz Zielonka wrote:
> On Sun, Feb 05, 2006 at 01:14:42PM -0000, Brian Hulley wrote:
>> How about:
>>
>>      f x y
>>      . g x
>>      $ z
> 
> But then you have a problem when you when you want to add something
> at the beginning ;-)

How about:

     id
     . f x y
     . g x
     $ z

-- Ben



More information about the Haskell-Cafe mailing list