Type transformations in Map
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 3.4k
- Forks
- 120
- Avg merge
- 4d 17h
- Merged PRs (30d)
- 3
Description
Scala: def map[B](f: (A) ? B): Traversable[B]
Golang: func (r Result[T]) Map(mapper func(value T) (T, error)) Result[T]
Generally the map function supports type transformations from T[A] => T[B] which is used the most in all practical use cases.
While the library supports mapping, but its applicability is very limited due to this limitations.
I believe this is majorly because Golang does not support type arguments on methods.
Any means to bypass this and get a more practical mappers?
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
No file or test entry point is identified. Start by reviewing the existing Map APIs and the Go generic-method limitation described in the issue, then determine a supported type-transforming API and the tests needed to demonstrate it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- api
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100