<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def items(self):
 """Returns a depth-first flat list of all items in the document"""

        l = []
        for e in self.data:
            l += e.items()
        return l