[Haskell-cafe] The difference between ($) and application
Marcin 'Qrczak' Kowalczyk
qrczak at knm.org.pl
Tue Dec 14 12:53:41 EST 2004
Andres Loeh <andres at cs.uu.nl> writes:
> The function ($) is the identity function, restricted to functions.
Almost. With the standard definition of
f $ x = f x
it happens that
($) undefined `seq` () = ()
id undefined `seq` () = undefined
--
__("< Marcin Kowalczyk
\__/ qrczak at knm.org.pl
^^ http://qrnik.knm.org.pl/~qrczak/
More information about the Haskell-Cafe
mailing list