[Haskell-cafe] powerSet = filterM (const [True, False]) ... is this obfuscated haskell?

Sittampalam, Ganesh ganesh.sittampalam at credit-suisse.com
Tue Jul 28 05:06:52 EDT 2009


> perms = sortByM (const [True,False])

This doesn't seem right, since the comparison function is inconsistent
and moreover the results will depend on the sorting algorithm chosen.

Ganesh

=============================================================================== 
 Please access the attached hyperlink for an important electronic communications disclaimer: 
 http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html 
 =============================================================================== 
 


More information about the Haskell-Cafe mailing list