hero

Permutations

In this post, we will talk about producing permuations using OCaml. Generating permutations was actually one of my first self-hom…

Pearl No.3 - Saddleback Search

Happy Easter Our easter egg happens to be Pearl 3. A function $ f $ can have the following properties: $ f $ takes two …

Binomial Heap

As we described in the previous post, leftist tree is a binary tree based functional heap. It manipulates the tree structure so t…

async

The Magic of Thunk - Async

Currently in post-production. Sorry, I still haven't finished this post. As this will be the last post in the magic of thunk ser…

lazy

The Magic of Thunk - Lazy

The dark side of thunk As discussed previously, thunk is used to encapsulate computations for later uses. Although we may not eva…