|
|
|
|
|
by dagw
5663 days ago
|
|
I find this a recurring problem when trying to learn Haskell. On the one hand you have lots of books and tutorials talking about how simple and elegant Haskell is. Showing all the awesome things you can do with two lines of code. Then I try to write simple and elegant Haskell like that and find it runs an order of magnitude slower than my Python code. I wish more Haskell proponents would spent less time showing off simple and elegant code, and more time showing fast and correct code. |
|
It's pretty elegant, too, if less than the inefficient pseudo-qsort shown by the OP.