It might be nice to encapsulate this behavior into a helper function that returns a seq of all the entries. I'm not entirely sure how to go about making that lazy though, which seems important, so not a big deal.