#MonthOfCode - Day 19: tree
My entry for the 19th day of the month of code. The theme for today is: tree.
Here’s a stupid tree implementation where the nodes are not stored explicitly but are instead captured by closures. Only leaves have a value.
1 | (function () { |
Stupid, isn’t it?