Find duplication in a list, return a list of duplicated elements
(list)
| 45 | |
| 46 | @set_module('numpy.rec') |
| 47 | def find_duplicate(list): |
| 48 | """Find duplication in a list, return a list of duplicated elements""" |
| 49 | return [ |
| 50 | item |
| 51 | for item, counts in Counter(list).items() |
| 52 | if counts > 1 |
| 53 | ] |
| 54 | |
| 55 | |
| 56 | @set_module('numpy.rec') |
no test coverage detected
searching dependent graphs…