Learn how to use structural pattern matching (the match statement) to work recursively through tree-like structures.
Size matters at codegolf.stackexchange.com.