13 Binary Trees

Let's take a look at another example of variants, binary trees.

In a binary tree, each node can have two children:

We can make a tree!

This list is:

mermaid
2 --> 1
2 --> 3

As you can see, binary trees are super easy to implement in OCaml!