This was an interesting read. Does anyone else have any data structure creations in functional languages they've designed and want to share?
http://www.leonardoborges.com/writings/2013/02/03/purely-functional-data-structures-in-clojure-leftist-heaps/?utm_source=dlvr.it&utm_medium=twitter
Quote
Last year I started reading a book called Purely Functional Data Structures. Its a fascinating book and if youve ever wondered how Clojures persistent data structures work, its mandatory reading.
However, all code samples in the book are written in ML - with Haskell versions in the end of the book. This means I got stuck in Chapter 3, where the ML snippets start.
I had no clue about Haskells - much less MLs! - syntax and I was finding it very difficult to follow along. What I did notice is that their syntaxes are not so different from each other.
So I put the book down and read Lear You a Haskell For Great Good! with the hopes that learning more about haskells syntax - in particular, learning how to read its type signatures - would help me get going with Puretly Functional Data Structures.
However, all code samples in the book are written in ML - with Haskell versions in the end of the book. This means I got stuck in Chapter 3, where the ML snippets start.
I had no clue about Haskells - much less MLs! - syntax and I was finding it very difficult to follow along. What I did notice is that their syntaxes are not so different from each other.
So I put the book down and read Lear You a Haskell For Great Good! with the hopes that learning more about haskells syntax - in particular, learning how to read its type signatures - would help me get going with Puretly Functional Data Structures.
http://www.leonardoborges.com/writings/2013/02/03/purely-functional-data-structures-in-clojure-leftist-heaps/?utm_source=dlvr.it&utm_medium=twitter