Changes between Initial Version and Version 1 of Ticket #1115, comment 16


Ignore:
Timestamp:
2012-04-01T23:39:26Z (13 years ago)
Author:
amiller
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1115, comment 16

    initial v1  
    11Good catch. I fixed the problem by adding an initial argument to reduce:
    22
    3 {{{ len(reduce(set.union, sm.itervalues()) }}}
     3{{{ len(reduce(set.union, sm.itervalues(), set()) }}}
    44
    55I modified the unit test to cover this as well.