Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

But they are not different. The functions in stream-fusion are a drop-in replacement for the ones in Data.List. To quote the package description: "To use, simply import Data.List.Stream in place of Data.List, and hide list functions from the Prelude."

So to put simply: you have two functions. They are semantically equivalent, but one is faster than the other. Why not use the faster one?



Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: