-
-
Notifications
You must be signed in to change notification settings - Fork 436
Feature request:two builtin array functions #670
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Hey @huziu235 What about, instead of introducing new builtins , we can solve this on optimizer level. For example,
Lets add new optimization for those cases:
We can add an optimization which will do an early exit from And this optimization:
Let's also add an early exit from |
Expr already has
|
@antonmedv |
Via #index . |
hi dear @antonmedv : How can this be done? |
some(array,n,predicate)
Return true immediately when match n item , otherwise return false
filterN(array,n,predicate)
Return first n matches immediately, or all matches if matches less than n.
largeArray|some(2,#>100)
largeArray|filterN(n,#>100)
The text was updated successfully, but these errors were encountered: