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

Handle if guards #14

Open
KacperFKorban opened this issue Sep 11, 2022 · 1 comment
Open

Handle if guards #14

KacperFKorban opened this issue Sep 11, 2022 · 1 comment

Comments

@KacperFKorban
Copy link
Member

avocADO should be able to correctly handle if guards in for comprehensions.
e.g.

for {
  a <- Some(1)
  if a < 2
  b <- Some(2)
} yield b
@KacperFKorban
Copy link
Member Author

KacperFKorban commented Sep 11, 2022

Pattern matches in for comprehensions also should be correctly handled. (They depend on withFilter)
e.g.

for {
  (a, b) <- wait.map(_ => 1 -> 2)
  c <- wait.map(_ => a)
} yield (a, b, c)

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