This looks like good functional code for inserting into a tree. It doesn't mutate the tree during insertion, but instead it creates a new tree containing the value. The basic idea of immutable data is that you don't "keep" things.
|
|
Scooped by
Srdjan Strbanovic
onto Functional programming January 23, 2013 7:22 PM
|
No comment yet.
Sign up to comment
Your new post is loading...