[Haskell-cafe] Rewrite without parenthesis

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


On Thu, Aug 18, 2016 at 02:14:26PM +0200, Francesco Ariis wrote:
> Hello Carl, simply
> 
>     λ> tail [1,2,3]
>     [2,3]
> 
> will do! Haskell is not a Lisp, no need to wrap expressions
> around ().

And you want to do away with pesky square brackets:

    λ> tail $ enumFromTo 1 3
    [2,3]


More information about the Haskell-Cafe mailing list