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

Tomasz Zielonka tomasz.zielonka at gmail.com
Sun Feb 5 14:34:04 EST 2006


On Sun, Feb 05, 2006 at 06:58:15PM +0000, Ben Rudiak-Gould wrote:
> Tomasz Zielonka wrote:
> >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

Yes, I've thought about it. You are using a neutral element of .,
just like I used [] as a neutral element of ++ (or concat).

Best regards
Tomasz

-- 
I am searching for programmers who are good at least in
(Haskell || ML) && (Linux || FreeBSD || math)
for work in Warsaw, Poland


More information about the Haskell-Cafe mailing list