We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, I see the readme says that the below code doesn't work
for { textA <- read(fileA) // Not a possible syntax if (fileA.contains("some string")) { textB <- read(fileB) _ <- write(fileC, textA + textB) } } yield ()
However it seems that the code below works:
val o1 = Option(1) val o2 = Option(1) // condition in monadic DSL for { a <- o1 _ <- if true then o1 else o2 } yield () // while loop in monadic DSL for { a <- o1 _ <- Option(while (true) {}) } yield ()
so it seems that control structure is actually supported in the monadic DSL?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi, I see the readme says that the below code doesn't work
However it seems that the code below works:
so it seems that control structure is actually supported in the monadic DSL?
The text was updated successfully, but these errors were encountered: