Revision d5fca545
b/lib/utils/algo.py | ||
---|---|---|
119 | 119 |
"""Inverts the key/value mapping of a dict. |
120 | 120 |
|
121 | 121 |
@param dict_in: The dict to invert |
122 |
@returns the inverted dict
|
|
122 |
@return: the inverted dict
|
|
123 | 123 |
|
124 | 124 |
""" |
125 | 125 |
return dict(zip(dict_in.values(), dict_in.keys())) |
Also available in: Unified diff