~achiang/+junk/valgrind-ubuntu-dbg-packages

Viewing all changes in revision 3.

  • Committer: Alex Chiang
  • Date: 2012-11-19 16:34:55 UTC
  • Revision ID: achiang@canonical.com-20121119163455-33ldlv09l3uk83h1
Re-implement in functional style

I found the multiple "found = True" statements to be a bit ugly so
refactored into a functional implementation.

At the bottom, you see that I compare the package sets returned by
the two implementations, and the output on the console is:

set([])

Therefore, I claim the functional implementation is equivalent to the
iterative implementation.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: