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

a select variant that returns the selected clause #201

Open
nimatrueway opened this issue Sep 3, 2024 · 0 comments
Open

a select variant that returns the selected clause #201

nimatrueway opened this issue Sep 3, 2024 · 0 comments

Comments

@nimatrueway
Copy link
Contributor

nimatrueway commented Sep 3, 2024

Having a method like the following:

def select(arg: scala.collection.Seq[SelectClause]): SelectClause

that informs you which SelectClause is selected is useful. Golang for example has such capability. One instance that I found this to be of use is (s: Source[Source[T]]).flatten #197 #198 where we should run a select on a merged set of both the parent source and its the children as they are discovered.

It would be even more fool proof if it still functions if a mutable Seq is passed to it, which fits better a broader range of use cases (including (s: Source[Source[T]]).flatten functionality)

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

No branches or pull requests

1 participant