Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Powerset – recursive algorithm in Haskell | Better HN
Powerset – recursive algorithm in Haskell
(levinotik.com)
6 points · by
xwowsersx
· 11y ago · 2 comments
Comments
[–]
badbath
11y ago
Would this be faster if we not calculate powerset xs twice? I don't know how GHC works well enough so I ask.
[–]
gamegoblin
11y ago
I'm pretty sure GHC will optimize that out since it's a pure function.