Skip to content

Commit

Permalink
Removed redundant renderings
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondtay committed Oct 28, 2017
1 parent b6cb93d commit 6a70cea
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions core/src/main/scala/cats/data/Cokleisli.scala
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ final case class Cokleisli[F[_], A, B](run: F[A] => B) { self =>
* {{{
* scala> import cats._, data._
* scala> val f = Cokleisli((xs: NonEmptyList[Int]) => xs.reverse.head)
* f: cats.data.Cokleisli[cats.data.NonEmptyList,Int,Int] = Cokleisli(<function1>)
* scala> def before(x: String) = x.toInt
* scala> def after(x: Int) = x.toString
* scala> f.dimap(before)(after).run(NonEmptyList.of("1","2"))
Expand All @@ -31,7 +30,6 @@ final case class Cokleisli[F[_], A, B](run: F[A] => B) { self =>
* {{{
* scala> import cats._, data._, implicits._
* scala> val f = Cokleisli((xs: NonEmptyList[Int]) => xs.reverse.head)
* f: cats.data.Cokleisli[cats.data.NonEmptyList,Int,Int] = Cokleisli(<function1>)
* scala> def before(x: String) = x.toInt
* scala> def after(x: Int) = x.toString
* scala> f.lmap(before).rmap(after).run(NonEmptyList.of("1","2"))
Expand All @@ -49,7 +47,6 @@ final case class Cokleisli[F[_], A, B](run: F[A] => B) { self =>
* {{{
* scala> import cats._, data._
* scala> val sum = Cokleisli((xs: NonEmptyList[Int]) => xs.reduceLeft(_ + _))
* sum: cats.data.Cokleisli[cats.data.NonEmptyList,Int,Int] = Cokleisli(<function1>)
*
* scala> sum.contramapValue((xs: NonEmptyList[String]) => xs.map(_.toInt)).run(NonEmptyList.of("1","2","3"))
* res4: Int = 6
Expand Down

0 comments on commit 6a70cea

Please sign in to comment.