softwaremill / softwaremill/ox
a `select` variant that returns the selected clause
Nobody has claimed this yet.
- Dominant language
- Scala
- Stars
- 522
- Forks
- 35
- Avg merge
- 45m
- Merged PRs (30d)
- 13
Description
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 https://github.com/softwaremill/ox/issues/197 https://github.com/softwaremill/ox/pull/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)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the existing select API and the SelectClause definition. Review how selection currently reports results, then determine the behavior for returning the selected clause when a mutable Seq is passed. Done means the proposed select method supports the described use case and its behavior is covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- scala
- Domain
- api
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100