Learn how to use structural pattern matching (the match statement) to work recursively through tree-like structures.
(You should c|C)heck out this( awesome)? blog post!+