Transform using values as keys.