14 Aug 2012 03:06
Tuples & Lists
KC <kc1956 <at> gmail.com>
2012-08-14 01:06:36 GMT
2012-08-14 01:06:36 GMT
"This part of the conditional can be written more succinctly as:
all (== test_lcv) [init_lcv, update_lcv, update_lcv']"
Wouldn't this be be better as tuple avoiding list overhead or does ghc optimize it out?
If it could be done as a tuple.
all (== test_lcv) (init_lcv, update_lcv, update_lcv')
_______________________________________________ Haskell mailing list Haskell <at> haskell.org http://www.haskell.org/mailman/listinfo/haskell
RSS Feed