exercism / gdscript

Exercism exercises in GDScript.
https://exercism.org/tracks/gdscript
MIT License
6 stars 7 forks source link

Add binary-search exercise #48

Closed pfertyk closed 10 months ago

pfertyk commented 10 months ago

@BNAndras as discussed in https://github.com/exercism/gdscript/issues/28, if the value is not found, we expect to receive a null. I've checked that the original Array.bsearch method in GDScript returns false in the same situation, so we're not far off :P

BNAndras commented 10 months ago

Do we want to return false then? It makes sense to match what’s already in the standard library. On the various Lisp language tracks, that’s what they do.

pfertyk commented 10 months ago

Thanks! I've updated null to false before merging :)