On Sun, Aug 12, 2012 at 1:30 PM, Maarten Faddegon <
[email protected]> wrote:
>
>         = if    -- All stmts use the same lcv
>                    test_lcv == init_lcv
> && test_lcv == update_lcv
> && test_lcv == update_lcv'
>                 -- And the lcv is not updated in the body
>

This part of the conditional can be written more succinctly as:

all (== test_lcv) [init_lcv, update_lcv, update_lcv']


Re: the if statement, you can also use guard syntax.

G
-- 
Gregory Collins <[email protected]>
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to