[Haskell-cafe] Rewrite without parenthesis

Francesco Ariis fa-ml at ariis.it
Thu Aug 18 12:14:26 UTC 2016


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 ().


More information about the Haskell-Cafe mailing list