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

[Backport 1.14] Filter list with custom function #418

Merged
merged 2 commits into from
Apr 25, 2022
Merged

Conversation

github-actions[bot]
Copy link

Description

Backport of #417 to 1.14.

relates to #359

* verify that a list can be filtered with a built-in and custom function
* verify that the custom function is invoked with the expected elements

(cherry picked from commit 675a6b5)
* a list can be filtered using a boolean function
* currently, the function is invoked once to determine if it is a number (for index access) or a boolean value (or something else)
* since the function is invoked without the list item, the invocation can fail if the "item" variable is passed in as a parameter

(cherry picked from commit b3e76be)
@saig0 saig0 merged commit 426be79 into 1.14 Apr 25, 2022
@saig0 saig0 deleted the backport-417-to-1.14 branch April 25, 2022 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant