Skip to content

Commit

Permalink
testing/11.answer.scala, Gen.scala: SGen: map: commented-out line rem…
Browse files Browse the repository at this point in the history
…oved

   def map[B](f: A => B): SGen[B] =
     SGen { g(_) map f }
-  //SGen(g andThen (_ map f))
  • Loading branch information
robcd committed Apr 29, 2016
1 parent 6b1c6f2 commit b67edde
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion answerkey/testing/11.answer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ case class SGen[+A](g: Int => Gen[A]) {

def map[B](f: A => B): SGen[B] =
SGen { g(_) map f }
//SGen(g andThen (_ map f))

def flatMap[B](f: A => SGen[B]): SGen[B] = {
val g2: Int => Gen[B] = n => {
Expand Down
1 change: 0 additions & 1 deletion answers/src/main/scala/fpinscala/testing/Gen.scala
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,6 @@ case class SGen[+A](g: Int => Gen[A]) {

def map[B](f: A => B): SGen[B] =
SGen { g(_) map f }
//SGen(g andThen (_ map f))

def flatMap[B](f: A => SGen[B]): SGen[B] = {
val g2: Int => Gen[B] = n => {
Expand Down

0 comments on commit b67edde

Please sign in to comment.