@utils.generator_to_list<EOL><INDENT>def handle_map_doc(self, document):<DEDENT>
<EOL>for function in sorted(list(self.functions.values()), key=lambda x: x[<NUM_LIT:0>]):<EOL><INDENT>try:<EOL><INDENT>yield [list(function(document))]<EOL><DEDENT>except Exception as exc:<EOL><INDENT>yield []<EOL>self.log(repr(exc))<EOL><DEDENT><DEDENT>
Return the mapping of a document according to the function list.