You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The python list are used when converting native Java array, not Java objects.
You can use the toArray() method to have a native list over an ArrayList or Set :)
But sets are different from lists, tuples and arrays: they hash the entries, allowing fast lookups: "somestring" in some_set is approx. O(1), while the same operation on a list or tuple is O(n). Also sets have arbitrary(=no) item order. If a set is used somewhere, the author most certainly decided that look up speed is important while order is irrelevant.
Also tuple<->Array and list<->ArrayList make a better match, than list<->Array, but I can see why you made that decision.
This makes itterating over them painful.
The text was updated successfully, but these errors were encountered: