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

Ruby: add flow summary for Enumerable#index_by #11252

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

nickrolfe
Copy link
Contributor

@nickrolfe nickrolfe commented Nov 14, 2022

No description provided.

@nickrolfe nickrolfe marked this pull request as ready for review Nov 14, 2022
@nickrolfe nickrolfe requested a review from a team as a code owner Nov 14, 2022
input = "Argument[self].Element[any]" and
output = ["Argument[block].Parameter[0]", "ReturnValue.Element[?]"] and
Copy link
Contributor

@erik-krogh erik-krogh Nov 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a difference between Element[any] and Element[?]?

Copy link
Contributor Author

@nickrolfe nickrolfe Nov 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any means any known or unknown index, while ? means an unknown index.

Copy link
Contributor

@hvitved hvitved Nov 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that Element[any] in an output spec means the same as Element[?].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants