O'Reilly logo

Haskell Cookbook by Yogesh Sajanikar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

There's more...

You might have noticed the lack of random access in the list. This is true for many functional collections in Haskell. Even if you have random access, the persistence in Haskell means that we cannot modify the element in place without sacrificing purity. Hence, it can be seen that at times, the functional algorithms are a tad bit slower than their imperative counterparts. However, designed carefully, we can almost always match the performance of imperative language with the elegance of functional programming.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required