0 votes

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

in Engine by (98 points)

1 Answer

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.