
Hi,
Do you want to apply tail and then head on the list?
If so, you can write:
head $ tail [1, 2, 3]
Besides the dollar opeartor there is a dot (.) operator. You can read more
here:
http://stackoverflow.com/questions/940382/haskell-difference-between-dot-and...
Regards,
Daniel
On Thu, Aug 18, 2016 at 2:19 PM Francesco Ariis
On Thu, Aug 18, 2016 at 05:03:21AM -0700, Carl Petersen wrote:
How do you rewrite head (tail [1,2,3]) without parenthesis.
Hello Carl, simply
λ> tail [1,2,3] [2,3]
will do! Haskell is not a Lisp, no need to wrap expressions around (). _______________________________________________ Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.