|
|
|
|
|
by airstrike
684 days ago
|
|
Very cool, thanks for sharing. I wonder how easy it would be to port this to Rust, just for the heck of it... One minor thought: where you have `A Tree is either a Leaf or a Node containing 2 branches each containing another Tree structure.`, perhaps you could have `A Tree is either a Leaf or a Node _made of_ 2 branches each containing another Tree structure.` So that "made of" easily maps to the "of" in F#'s type definition. Just an idea. |
|