Home | Trees | Indices | Help |
|
---|
|
|
|||
|
|
|||
|
|||
|
|||
|
|
|||
chartable =
|
|||
__package__ =
|
|
|
Return a map and inverse map to indentify unique values based on hash, which is useful for removing duplicate data. If the hash generator yields None then the value is mapped to None (useful for discarding data). >>> unique_map([]) ([], []) >>> unique_map([3,2,6,None,1]) ([0, 1, 2, None, 3], [0, 1, 2, 4]) >>> unique_map([3,1,6,1]) ([0, 1, 2, 1], [0, 1, 2]) >>> unique_map([3,1,6,1,2,2,9,3,2]) ([0, 1, 2, 1, 3, 3, 4, 0, 3], [0, 1, 2, 4, 6]) |
|
chartable
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Oct 10 19:03:24 2011 | http://epydoc.sourceforge.net |