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
I'm missing some function for doing binary searches on arrays in GDScript.
Now, I'd add one, only there needs to be some discussion how and where. Should it be:
(1) a builtin GDScript function like clamp and max?
(2) an extension of Array? But that's a core extension and the core must stay minimal.
(3) some kind of utils package that people can use, like Python's bisect package
My personal favorite would be adding a bisect_left and bisect_right to Array.
The text was updated successfully, but these errors were encountered:
I'm missing some function for doing binary searches on arrays in GDScript.
Now, I'd add one, only there needs to be some discussion how and where. Should it be:
(1) a builtin GDScript function like
clamp
andmax
?(2) an extension of
Array
? But that's a core extension and the core must stay minimal.(3) some kind of utils package that people can use, like Python's
bisect
packageMy personal favorite would be adding a
bisect_left
andbisect_right
toArray
.The text was updated successfully, but these errors were encountered: