So I wanted to remove duplicate nested lists in a list. I tried writing my own function, but GDScript's "remove()" function isn't the same as python. So I looked on the internet. I found this handy bit of code:
list(set(tuple(sorted(sub)) for sub in test_list))
But Godot through this error in my face:
ERROR (1,28): Expected "," or ")"
I found out GDScript doesn't support regular python one-line if and for statements.
I tested it and it works fine in regular python.
I have so many questions:
- Does GDScript actually have discrepancies or am I just stupid?
- Where can I find a list of all of them?
- How do I get around this and remove these duplicate lists?
- Are the devs working on them?
- Can I tell them where?