Updated version of prune that takes a predicate.
Merge pull request #1 from ataggart/prune

Updated version of prune that takes a predicate.