Learn how to use structural pattern matching (the match statement) to work recursively through tree-like structures.
At codegolf.stackexchange.com, smaller is better.