[Haskell-beginners] Re: if True than let...

Andrew Wagner wagner.andrew at gmail.com
Fri Jun 26 08:50:40 EDT 2009


Well sure. I was assuming it was a simplified example...

On Fri, Jun 26, 2009 at 7:30 AM, Heinrich Apfelmus <
apfelmus at quantentunnel.de> wrote:

> Andrew Wagner wrote:
> > Try this: let b = if a == True then "+" else "-" in ...
>
> The little figurine of Dijkstra in my head is urging me to write this as
>
>  let b = if a then "+" else "-" in ...
>
> instead. ;)
>
>
> Regards,
> apfelmus
>
> --
> http://apfelmus.nfshost.com
>
> _______________________________________________
> 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/20090626/5e73562a/attachment.html


More information about the Beginners mailing list