for-comprehension is construction in Scala language allowing easy iteration over one or more collections.
I really don't seem to be understanding Map and FlatMap. What I am failing to understand is how a for-comprehension …
scala map monads for-comprehensionI am asking a very basic question which confused me recently. I want to write a Scala For expression to …
scala for-comprehensionI have two functions which return Futures. I'm trying to feed a modified result from first function into the other …
scala future for-comprehensionWhy does this construction cause a Type Mismatch error in Scala? for (first <- Some(1); second <- List(1,2,3)) …
scala for-loop type-mismatch for-comprehension scala-optionIs it always more performant to use withFilter instead of filter, when afterwards applying functions like map, flatmap etc.? Why …
scala lazy-evaluation scala-collections for-comprehensionIn the example below I get the exception java.util.NoSuchElementException: Future.filter predicate is not satisfied I want to …
scala filter future for-comprehensionI have found that Scala always has a "natural explanation" to anything. Always something like "ohh, but that's just a …
scala loops compiler-theory for-comprehensionAs I understand it, Scala "for" syntax is extremely similar to Haskell's monadic "do" syntax. In Scala, "for" syntax is …
scala monads typeclass for-comprehension eitherGiven a map where a digit is associated to several characters scala> val conversion = Map("0" -> List("A", "…
scala for-comprehensionIn a for-comprehension, I can't just put a print statement: def prod (m: Int) = { for (a <- 2 to m/(2*3); …
scala variable-assignment println for-comprehension