We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b1c6f2 commit b67eddeCopy full SHA for b67edde
answerkey/testing/11.answer.scala
@@ -3,7 +3,6 @@ case class SGen[+A](g: Int => Gen[A]) {
3
4
def map[B](f: A => B): SGen[B] =
5
SGen { g(_) map f }
6
- //SGen(g andThen (_ map f))
7
8
def flatMap[B](f: A => SGen[B]): SGen[B] = {
9
val g2: Int => Gen[B] = n => {
answers/src/main/scala/fpinscala/testing/Gen.scala
@@ -291,7 +291,6 @@ case class SGen[+A](g: Int => Gen[A]) {
291
292
293
294
295
296
297
0 commit comments