<div class="gmail_quote">On 24 December 2010 23:58, Daniel Fischer <span dir="ltr">&lt;<a href="mailto:daniel.is.fischer@googlemail.com">daniel.is.fischer@googlemail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">On Saturday 25 December 2010 00:32:38, Aaron Gray wrote:<br>
&gt; Okay great, works this end too, but what does the &#39;flip&#39; do ???<br>
<br>
</div>It flips the order of arguments to calc. You could also write<br>
<br>
main = getContents &gt;&gt;= print . (`calc` []) . lexer<br>
<br>
Generally,<br>
<br>
flip f = \x y -&gt; f y x<br>
<br>
or<br>
<br>
flip f x = \y -&gt; f y x<br>
<br>
flip f x y = f y x<br>
</blockquote></div><br><div>Thanks Daniel,</div><div><br></div><div>Aaron</div>