Map in GdScript Key Value

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Raikish

Hi community.

I’m comming from Java and i want to knwo if GDscript supports something like HashMap.
HashMap it’s a class from java that allow us to add some value to a key array. And then you can find the value knowing the key. I found in C# is named Dictionary, It’s not the same but works similar.

	HashMap<String, Number> map = new HashMap<>();
	map.put("test", 30);
	System.out.println(map.get("test")); // prints 30

Any help will be appreciated

:bust_in_silhouette: Reply From: pospathos