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
In
For
Each
ForEach
Foreach is a hidden keyword automatically generated from foreach calls, for example:
Foreach
foreach
val reified: For[Await[Future[1]], Int, Unit] = for ($x <- Await(Future(1))) { print($x) }
The return type should be Foreach[Await[Future[Int]], Int, Unit]
Foreach[Await[Future[Int]], Int, Unit]
In is just a wrapper of collection types to prevent the foreach/map/flatMap/withFilter methods defined on the collection, for example:
map
flatMap
withFilter
val ast3: FlatMap[ Await[Int], Int, FlatMap[ In[Int], Int, Pure[Int] ] ] = for { i <- Await(Future(1)) j <- In(0 until 10) } yield 111
Both In and Foreach are supposed to be used along with for expression instead of !-notation.
for
The text was updated successfully, but these errors were encountered:
Note that the initial version of In and For will reuse type classes for Each and ForEach to make the migration easier.
Sorry, something went wrong.
See #477
Atry
No branches or pull requests
Foreach
is a hidden keyword automatically generated fromforeach
calls, for example:The return type should be
Foreach[Await[Future[Int]], Int, Unit]
In
is just a wrapper of collection types to prevent theforeach
/map
/flatMap
/withFilter
methods defined on the collection, for example:Both
In
andForeach
are supposed to be used along withfor
expression instead of !-notation.The text was updated successfully, but these errors were encountered: