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

Allow return x in flatMap (e.g. flatMap { (x: ...) => x }) #744

Closed
greenhat opened this issue Nov 1, 2021 · 0 comments · Fixed by #758
Closed

Allow return x in flatMap (e.g. flatMap { (x: ...) => x }) #744

greenhat opened this issue Nov 1, 2021 · 0 comments · Fixed by #758
Assignees
Milestone

Comments

@greenhat
Copy link
Member

greenhat commented Nov 1, 2021

From discord https://discord.com/channels/668903786361651200/840313005064585246/902729968331685988 :

I currently have a 

Coll[Coll[(SigmaProp, Coll[Byte])]]

that I am simply trying to flatten into a 

Coll[(SigmaProp, Coll[Byte])]

I tried 

flatMap{ (x : Coll[(SigmaProp, Coll[Byte])]) => x }

 but am running into an error that says: 

Unsupported lambda in flatMap: allowed usage `xs.flatMap(x => x.property)
@aslesarenko aslesarenko added this to the v5.0 milestone Dec 23, 2021
@aslesarenko aslesarenko self-assigned this Dec 23, 2021
@aslesarenko aslesarenko mentioned this issue Dec 23, 2021
21 tasks
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 a pull request may close this issue.

2 participants