[Haskell-cafe] How to solve this problem?It's quite easy in PHP.
Henk-Jan van Tuyl
hjgtuyl at chello.nl
Sun Feb 18 08:43:42 EST 2007
On Fri, 16 Feb 2007 22:44:25 +0100, David House <dmhouse at gmail.com> wrote:
> On 16/02/07, Henk-Jan van Tuyl <hjgtuyl at chello.nl> wrote:
>> Yet simpler:
>> > formatTableItems (a,b) = a : " = " ++ (show b) ++ "\n"
>
> You can drop the parentheses around 'show b'; infix function
> application always binds tighter than pretty much everything else.
I missed that one; of course I knew it, but you could say it's in my
passive vocabulary.
--
Met vriendelijke groet,
Henk-Jan van Tuyl
--
http://Van.Tuyl.eu/
--
Using Opera's revolutionary e-mail client:
https://secure.bmtmicro.com/opera/buy-opera.html?AID=789433
More information about the Haskell-Cafe
mailing list