Why are there no sets in GDScript?

I know you can ‘simulate’ a set using a dictionary by only utilizing the keys. But is there a specific reason why sets aren’t provided built-in? Given that dictionaries are an extension of sets, it seems that sets aren’t too difficult to implement.

:slight_smile:

There is a proposal for including sets in the engine and some discussion here: Implement a Set primitive to complement Dictionary and Array · Issue #867 · godotengine/godot-proposals · GitHub

2 Likes

this place is for forum feedback, not godot feedback

Oh sorry, my bad.
First picked general but somehow changed it before posting.
Changed it back now :upside_down_face:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.