|
Scala example source code file (IdOps.scala)
The IdOps.scala Scala example source codepackage scalaz package syntax package effect import scalaz.effect.IO final class IdOps[A](val self: A) extends AnyVal { final def put(implicit S: Show[A]): IO[Unit] = IO.put(self) final def putLn(implicit S: Show[A]): IO[Unit] = IO.putLn(self) /** Safe version of tap. */ final def tap[B](f: A => IO[B]): IO[A] = for { _ <- f(self) } yield self } trait ToIdOps { implicit def ToEffectIdOps[A](a: A): IdOps[A] = new IdOps(a) } Other Scala examples (source code examples)Here is a short list of links related to this Scala IdOps.scala source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.