This post describes the F# implementation of the lazy binomial heap from Chris Okasaki’s “Purely functional data structures”.
This post describes the F# implementation of the bankers queue from Chris Okasaki’s “Purely functional data structures”.
This post describes the F# implementation of the splay heap from Chris Okasaki’s “Purely functional data structures”.
This post describes the F# implementation of the double-ended queue from Chris Okasaki’s “Purely functional data structures”.
This post describes the F# implementation of the pairing heap from Chris Okasaki’s “Purely functional data structures”.
This post describes the F# implementation of the batched queue from Chris Okasaki’s “Purely functional data structures”.
This post describes the F# implementation of the binomial heap from Chris Okasaki’s “Purely functional data structures”.
This post describes the F# implementation of the red-black set from Chris Okasaki’s “Purely functional data structures”.
This post describes the F# implementation of the leftist heap from Chris Okasaki’s “Purely functional data structures”.
This post describes the F# implementation of the finite map from Chris Okasaki’s “Purely functional data structures”.
This post describes the F# implementation of the binary search tree from Chris Okasaki’s “Purely functional data structures”.
This post describes the F# implementation of the custom stack from Chris Okasaki’s “Purely functional data structures”.
This is the first of a series of posts relating to Chris Okasaki’s “Purely functional data structures” (see his thesis, and his book).
Note : the code given in his aforementionned book assumes much more laziness than will be used in the coming examples, mainly for simplification purposes.
In the following piece of code, we shall only define a few exceptions and extend the LazyList module from the FSharp Powerpack with a few functions needed to implement Chris Okasaki’s “purely functional data structures”.