Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It looks like the function current is missing #262

Open
bilelgasmi opened this issue Jan 5, 2021 · 1 comment
Open

It looks like the function current is missing #262

bilelgasmi opened this issue Jan 5, 2021 · 1 comment
Labels
enhancement New feature or request missing function

Comments

@bilelgasmi
Copy link

Hi, it looks like current() is missing.

Any plans to add it? Thanks!

@shish
Copy link
Collaborator

shish commented Feb 7, 2025

This family of functions can return false because they are empty, or can return false because the element contains an element with the value false, so one can't spot the error by looking just at the return value.

We could potentially add special-cases for this family of functions where we first check the length of the array, throw an exception if the array is empty, and then go on to return whatever the function returns, but that's slightly less-trivial

@shish shish added the enhancement New feature or request label Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request missing function
Projects
None yet
Development

No branches or pull requests

2 participants