<p dir="ltr">Francesco, you missed a piece. 'head' is part of the expression. :) What Carl is looking for is one or the other of these:</p>
<p dir="ltr">head $ tail [1,2,3]<br>
-- or --<br>
head . tail $ [1,2,3]</p>
<p dir="ltr">The first one is shorter and fine for inlining, but I generally prefer the second form... it helps intuition about eta reduction, refactoring, and additional composition.</p>
<div class="gmail_extra"><br><div class="gmail_quote">On Aug 18, 2016 5:19 AM, "Francesco Ariis" <<a href="mailto:fa-ml@ariis.it">fa-ml@ariis.it</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, Aug 18, 2016 at 05:03:21AM -0700, Carl Petersen wrote:<br>
> How do you rewrite head (tail [1,2,3]) without parenthesis.<br>
<br>
Hello Carl, simply<br>
<br>
    λ> tail [1,2,3]<br>
    [2,3]<br>
<br>
will do! Haskell is not a Lisp, no need to wrap expressions<br>
around ().<br>
______________________________<wbr>_________________<br>
Haskell-Cafe mailing list<br>
To (un)subscribe, modify options or view archives go to:<br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/haskell-<wbr>cafe</a><br>
Only members subscribed via the mailman list are allowed to post.</blockquote></div></div>