Godot switch key and value of dictionary

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Chain
:warning: Old Version Published before Godot 3 was released.

Hi,

I think the title explains my problem pretty well. I am currently trying to switch the key and value of a dictionary and I wanted to know if there is a pre built function or if I have to build one myself.

Example:

{
“3”:“How are you?”
}

Thanks in advance!

:bust_in_silhouette: Reply From: 807

In godot 2.1.3 there is no such funcionality. You need to do that by code. But is easy.