[Haskell-beginners] anonymous arguments

Tony Morris tmorris at tmorris.net
Sun Dec 29 12:37:51 UTC 2013


(`foo` 3)

Scala is very limited when it comes to this point free code.
On 29/12/2013 10:17 PM, "harry" <voldermort at hotmail.com> wrote:

> Is there any reason not to include Scala-like anonymous arguments in
> Haskell? For example, I would like to write
>   map (\x -> foo x 3)
> as
>   map (foo _ 3)
>
> The named argument in this and similar cases adds nothing but visual and
> namespace clutter.
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20131229/a13f7183/attachment.html>


More information about the Beginners mailing list